Skip to content

Class ComponentLegacySerializer

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

public static class ComponentLegacySerializer

Inheritance

objectComponentLegacySerializer

Inherited Members

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

Fields

ExampleComplexLegacyString

public const string ExampleComplexLegacyString = "&0Aa1!b@2$&k3#Cd$Ef%&1Gh7%h^j&lKl8&Lm*&2No9(Q)r&mSt0_Op+&3Uv-1=Wx&nYz2!Za@&4b#3$Cd%&oEf4&Gh*&5Ij5)Kl(&rMn6)Op?&6Qr7_Rs-&7Tu8*Vw&&8Xy9@Za!&9Bc0#De$&aFg1%Hi^&bJk2&Lm*&cNo3(Pq)&dRs4_St+&eUv5=Wx-&fYz6!Ab@"

Field Value

string

ExampleLegacyString

public const string ExampleLegacyString = "&1Hello, &2this is a &x&F&F&A&A&0&1hex colored text, &lwith bold, &oitalic, &nunderline, &mstrikethrough, &kobfuscated, &rand reset."

Field Value

string

Methods

Deserialize(string, char)

public static Component Deserialize(string source, char prefix = '&')

Parameters

source string

prefix char

Returns

Component

Serialize(Component, char)

public static string Serialize(Component component, char prefix = '&')

Parameters

component Component

prefix char

Returns

string