Class LongArgumentSerializer
Namespace: Void.Minecraft.Commands.Brigadier.Serializers
Assembly: Void.Minecraft.dll
Reads and writes optional long-argument bounds.
public class LongArgumentSerializer : IArgumentSerializerInheritance
object ← LongArgumentSerializer
Implements
Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Fields
HAS_MAXIMUM
Indicates that an explicit maximum follows the flag byte.
public const byte HAS_MAXIMUM = 2Field Value
HAS_MINIMUM
Indicates that an explicit minimum follows the flag byte.
public const byte HAS_MINIMUM = 1Field Value
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 argumentType, ref BufferSpan buffer, ProtocolVersion protocolVersion)Parameters
argumentType IArgumentType
buffer BufferSpan
The destination buffer.
protocolVersion ProtocolVersion
The target protocol version.