Class LegacyTextFormat
Namespace: Void.Minecraft.Components.Text.Formats
Assembly: Void.Minecraft.dll
public record LegacyTextFormat : IEquatable<LegacyTextFormat>Inheritance
Implements
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
Black
public static LegacyTextFormat Black { get; }Property Value
Blue
public static LegacyTextFormat Blue { get; }Property Value
Bold
public static LegacyTextFormat Bold { get; }Property Value
Code
public char Code { get; }Property Value
DarkAqua
public static LegacyTextFormat DarkAqua { get; }Property Value
DarkBlue
public static LegacyTextFormat DarkBlue { get; }Property Value
DarkGray
public static LegacyTextFormat DarkGray { get; }Property Value
DarkGreen
public static LegacyTextFormat DarkGreen { get; }Property Value
DarkPurple
public static LegacyTextFormat DarkPurple { get; }Property Value
DarkRed
public static LegacyTextFormat DarkRed { get; }Property Value
Gold
public static LegacyTextFormat Gold { get; }Property Value
Gray
public static LegacyTextFormat Gray { get; }Property Value
Green
public static LegacyTextFormat Green { get; }Property Value
Italic
public static LegacyTextFormat Italic { get; }Property Value
LightPurple
public static LegacyTextFormat LightPurple { get; }Property Value
Name
public string Name { get; }Property Value
Obfuscated
public static LegacyTextFormat Obfuscated { get; }Property Value
Red
public static LegacyTextFormat Red { get; }Property Value
Reset
public static LegacyTextFormat Reset { get; }Property Value
Strikethrough
public static LegacyTextFormat Strikethrough { get; }Property Value
Transform
public Func<Formatting, Formatting> Transform { get; }Property Value
Underlined
public static LegacyTextFormat Underlined { get; }Property Value
White
public static LegacyTextFormat White { get; }Property Value
Yellow
public static LegacyTextFormat Yellow { get; }Property Value
Methods
TryFromCode(char, out LegacyTextFormat)
public static bool TryFromCode(char code, out LegacyTextFormat result)Parameters
code char
result LegacyTextFormat
Returns
TryFromName(ReadOnlySpan<char>, out LegacyTextFormat)
public static bool TryFromName(ReadOnlySpan<char> name, out LegacyTextFormat result)Parameters
name ReadOnlySpan<char>
result LegacyTextFormat