Class StringProperty
Namespace: Void.Minecraft.Network.Registries.Transformations.Properties
Assembly: Void.Minecraft.dll
public record StringProperty : IPacketProperty<StringProperty>, IPacketProperty, IEquatable<StringProperty>Inheritance
Implements
IPacketProperty<StringProperty>, IPacketProperty, IEquatable<StringProperty>
Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
StringProperty(ReadOnlyMemory<byte>)
public StringProperty(ReadOnlyMemory<byte> Value)Parameters
Value ReadOnlyMemory<byte>
Properties
AsJsonNode
public JsonNode AsJsonNode { get; }Property Value
AsPrimitive
public string AsPrimitive { get; }Property Value
Value
public ReadOnlyMemory<byte> Value { get; init; }Property Value
Methods
FromJsonNode(JsonNode, JsonSerializerOptions?)
public static StringProperty FromJsonNode(JsonNode value, JsonSerializerOptions? jsonSerializerOptions = null)Parameters
value JsonNode
jsonSerializerOptions JsonSerializerOptions?
Returns
FromPrimitive(ReadOnlySpan<char>)
public static StringProperty FromPrimitive(ReadOnlySpan<char> value)Parameters
value ReadOnlySpan<char>
Returns
Read(ref MinecraftBuffer)
public static StringProperty Read(ref MinecraftBuffer buffer)Parameters
buffer MinecraftBuffer
Returns
ToJsonNode(JsonNodeOptions?, JsonDocumentOptions)
public JsonNode ToJsonNode(JsonNodeOptions? jsonNodeOptions = null, JsonDocumentOptions jsonDocumentOptions = default)Parameters
jsonNodeOptions JsonNodeOptions?
jsonDocumentOptions JsonDocumentOptions
Returns
Write(ref MinecraftBuffer)
public void Write(ref MinecraftBuffer buffer)Parameters
buffer MinecraftBuffer