Class ResourceSelectorArgumentType.Serializer
Namespace: Void.Minecraft.Commands.Brigadier.ArgumentTypes.RegistryKey
Assembly: Void.Minecraft.dll
Serializes
public class ResourceSelectorArgumentType.Serializer : IArgumentSerializerInheritance
object ← ResourceSelectorArgumentType.Serializer
Implements
Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Properties
Instance
Gets the shared stateless serializer.
public static IArgumentSerializer Instance { get; }Property Value
Methods
Deserialize(ref BufferSpan, ProtocolVersion)
Reads argument properties from a buffer.
public IArgumentType Deserialize(ref BufferSpan buffer, ProtocolVersion protocolVersion)Parameters
buffer BufferSpan
The source buffer.
protocolVersion ProtocolVersion
The source protocol version.
Returns
The decoded argument type or passthrough value.
Serialize(IArgumentType, ref BufferSpan, ProtocolVersion)
Writes argument properties to a buffer.
public void Serialize(IArgumentType value, ref BufferSpan buffer, ProtocolVersion protocolVersion)Parameters
value IArgumentType
The argument type to encode.
buffer BufferSpan
The destination buffer.
protocolVersion ProtocolVersion
The target protocol version.