Skip to content

Class StringProperty

Namespace: Void.Minecraft.Network.Registries.Transformations.Properties
Assembly: Void.Minecraft.dll

public record StringProperty : IPacketProperty<StringProperty>, IPacketProperty, IEquatable<StringProperty>

Inheritance

objectStringProperty

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

JsonNode

AsPrimitive

public string AsPrimitive { get; }

Property Value

string

Value

public ReadOnlyMemory<byte> Value { get; init; }

Property Value

ReadOnlyMemory<byte>

Methods

FromJsonNode(JsonNode, JsonSerializerOptions?)

public static StringProperty FromJsonNode(JsonNode value, JsonSerializerOptions? jsonSerializerOptions = null)

Parameters

value JsonNode

jsonSerializerOptions JsonSerializerOptions?

Returns

StringProperty

FromPrimitive(ReadOnlySpan<char>)

public static StringProperty FromPrimitive(ReadOnlySpan<char> value)

Parameters

value ReadOnlySpan<char>

Returns

StringProperty

Read(ref MinecraftBuffer)

public static StringProperty Read(ref MinecraftBuffer buffer)

Parameters

buffer MinecraftBuffer

Returns

StringProperty

ToJsonNode(JsonNodeOptions?, JsonDocumentOptions)

public JsonNode ToJsonNode(JsonNodeOptions? jsonNodeOptions = null, JsonDocumentOptions jsonDocumentOptions = default)

Parameters

jsonNodeOptions JsonNodeOptions?

jsonDocumentOptions JsonDocumentOptions

Returns

JsonNode

Write(ref MinecraftBuffer)

public void Write(ref MinecraftBuffer buffer)

Parameters

buffer MinecraftBuffer