Skip to content

Class TextShadowColor

Namespace: Void.Minecraft.Components.Text.Colors
Assembly: Void.Minecraft.dll

public record TextShadowColor : IEquatable<TextShadowColor>

Inheritance

objectTextShadowColor

Implements

IEquatable<TextShadowColor>

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

Constructors

TextShadowColor(byte, byte, byte, byte)

public TextShadowColor(byte Alpha, byte Red, byte Green, byte Blue)

Parameters

Alpha byte

Red byte

Green byte

Blue byte

Properties

Alpha

public byte Alpha { get; init; }

Property Value

byte

Blue

public byte Blue { get; init; }

Property Value

byte

Green

public byte Green { get; init; }

Property Value

byte

Name

public string Name { get; }

Property Value

string

Red

public byte Red { get; init; }

Property Value

byte

Methods

FromString(string)

public static TextShadowColor FromString(string value)

Parameters

value string

Returns

TextShadowColor

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

Operators

implicit operator TextShadowColor((byte Alpha, byte Red, byte Green, byte Blue))

public static implicit operator TextShadowColor((byte Alpha, byte Red, byte Green, byte Blue) color)

Parameters

color (byte Alpha, byte Red, byte Green, byte Blue)

Returns

TextShadowColor

implicit operator TextShadowColor(Color)

public static implicit operator TextShadowColor(Color color)

Parameters

color Color

Returns

TextShadowColor

implicit operator TextShadowColor(string)

public static implicit operator TextShadowColor(string color)

Parameters

color string

Returns

TextShadowColor

implicit operator Color(TextShadowColor)

public static implicit operator Color(TextShadowColor color)

Parameters

color TextShadowColor

Returns

Color

implicit operator string(TextShadowColor)

public static implicit operator string(TextShadowColor color)

Parameters

color TextShadowColor

Returns

string

implicit operator int(TextShadowColor)

public static implicit operator int(TextShadowColor color)

Parameters

color TextShadowColor

Returns

int

implicit operator TextShadowColor(int)

public static implicit operator TextShadowColor(int value)

Parameters

value int

Returns

TextShadowColor

implicit operator float[](TextShadowColor)

public static implicit operator float[](TextShadowColor color)

Parameters

color TextShadowColor

Returns

float[]

implicit operator TextShadowColor(float[])

public static implicit operator TextShadowColor(float[] components)

Parameters

components float[]

Returns

TextShadowColor