Skip to content

Class LegacyTextFormat

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

public record LegacyTextFormat : IEquatable<LegacyTextFormat>

Inheritance

objectLegacyTextFormat

Implements

IEquatable<LegacyTextFormat>

Inherited Members

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

Constructors

LegacyTextFormat(char, string)

public LegacyTextFormat(char code, string name)

Parameters

code char

name string

Properties

Aqua

public static LegacyTextFormat Aqua { get; }

Property Value

LegacyTextFormat

Black

public static LegacyTextFormat Black { get; }

Property Value

LegacyTextFormat

Blue

public static LegacyTextFormat Blue { get; }

Property Value

LegacyTextFormat

Bold

public static LegacyTextFormat Bold { get; }

Property Value

LegacyTextFormat

Code

public char Code { get; }

Property Value

char

DarkAqua

public static LegacyTextFormat DarkAqua { get; }

Property Value

LegacyTextFormat

DarkBlue

public static LegacyTextFormat DarkBlue { get; }

Property Value

LegacyTextFormat

DarkGray

public static LegacyTextFormat DarkGray { get; }

Property Value

LegacyTextFormat

DarkGreen

public static LegacyTextFormat DarkGreen { get; }

Property Value

LegacyTextFormat

DarkPurple

public static LegacyTextFormat DarkPurple { get; }

Property Value

LegacyTextFormat

DarkRed

public static LegacyTextFormat DarkRed { get; }

Property Value

LegacyTextFormat

Gold

public static LegacyTextFormat Gold { get; }

Property Value

LegacyTextFormat

Gray

public static LegacyTextFormat Gray { get; }

Property Value

LegacyTextFormat

Green

public static LegacyTextFormat Green { get; }

Property Value

LegacyTextFormat

Italic

public static LegacyTextFormat Italic { get; }

Property Value

LegacyTextFormat

LightPurple

public static LegacyTextFormat LightPurple { get; }

Property Value

LegacyTextFormat

Name

public string Name { get; }

Property Value

string

Obfuscated

public static LegacyTextFormat Obfuscated { get; }

Property Value

LegacyTextFormat

Red

public static LegacyTextFormat Red { get; }

Property Value

LegacyTextFormat

Reset

public static LegacyTextFormat Reset { get; }

Property Value

LegacyTextFormat

Strikethrough

public static LegacyTextFormat Strikethrough { get; }

Property Value

LegacyTextFormat

Transform

public Func<Formatting, Formatting> Transform { get; }

Property Value

Func<Formatting, Formatting>

Underlined

public static LegacyTextFormat Underlined { get; }

Property Value

LegacyTextFormat

White

public static LegacyTextFormat White { get; }

Property Value

LegacyTextFormat

Yellow

public static LegacyTextFormat Yellow { get; }

Property Value

LegacyTextFormat

Methods

TryFromCode(char, out LegacyTextFormat)

public static bool TryFromCode(char code, out LegacyTextFormat result)

Parameters

code char

result LegacyTextFormat

Returns

bool

TryFromName(ReadOnlySpan<char>, out LegacyTextFormat)

public static bool TryFromName(ReadOnlySpan<char> name, out LegacyTextFormat result)

Parameters

name ReadOnlySpan<char>

result LegacyTextFormat

Returns

bool