Class NbtByteArrayJsonConverter
Namespace: Void.Minecraft.Nbt.Serializers.Json.Tags
Assembly: Void.Minecraft.dll
Writes NBT byte arrays as JSON number arrays.
public class NbtByteArrayJsonConverter : JsonConverter<NbtByteArray>Inheritance
object ← JsonConverter ← JsonConverter<NbtByteArray> ← NbtByteArrayJsonConverter
Inherited Members
JsonConverter<NbtByteArray>.CanConvert(Type), JsonConverter<NbtByteArray>.Read(ref Utf8JsonReader, Type, JsonSerializerOptions), JsonConverter<NbtByteArray>.ReadAsPropertyName(ref Utf8JsonReader, Type, JsonSerializerOptions), JsonConverter<NbtByteArray>.Write(Utf8JsonWriter, NbtByteArray, JsonSerializerOptions), JsonConverter<NbtByteArray>.WriteAsPropertyName(Utf8JsonWriter, NbtByteArray, JsonSerializerOptions), JsonConverter<NbtByteArray>.HandleNull, JsonConverter<NbtByteArray>.Type, JsonConverter.CanConvert(Type), JsonConverter.Type, object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Remarks
Deserialization is not supported.
Methods
Read(ref Utf8JsonReader, Type, JsonSerializerOptions)
Reads and converts the JSON to type
public override NbtByteArray Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)Parameters
reader Utf8JsonReader
The reader.
typeToConvert Type
The type to convert.
options JsonSerializerOptions
An object that specifies serialization options to use.
Returns
The converted value.
Write(Utf8JsonWriter, NbtByteArray, JsonSerializerOptions)
Writes a specified value as JSON.
public override void Write(Utf8JsonWriter writer, NbtByteArray tag, JsonSerializerOptions options)Parameters
writer Utf8JsonWriter
The writer to write to.
tag NbtByteArray
options JsonSerializerOptions
An object that specifies serialization options to use.