Skip to content

Class NbtTagTypeJsonConverter

Namespace: Void.Minecraft.Nbt.Serializers.Json
Assembly: Void.Minecraft.dll

public class NbtTagTypeJsonConverter : JsonConverter<NbtTagType>

Inheritance

objectJsonConverterJsonConverter<NbtTagType>NbtTagTypeJsonConverter

Inherited Members

JsonConverter<NbtTagType>.CanConvert(Type), JsonConverter<NbtTagType>.Read(ref Utf8JsonReader, Type, JsonSerializerOptions), JsonConverter<NbtTagType>.ReadAsPropertyName(ref Utf8JsonReader, Type, JsonSerializerOptions), JsonConverter<NbtTagType>.Write(Utf8JsonWriter, NbtTagType, JsonSerializerOptions), JsonConverter<NbtTagType>.WriteAsPropertyName(Utf8JsonWriter, NbtTagType, JsonSerializerOptions), JsonConverter<NbtTagType>.HandleNull, JsonConverter<NbtTagType>.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()

Methods

Read(ref Utf8JsonReader, Type, JsonSerializerOptions)

Reads and converts the JSON to type .

public override NbtTagType 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

NbtTagType

The converted value.

Write(Utf8JsonWriter, NbtTagType, JsonSerializerOptions)

Writes a specified value as JSON.

public override void Write(Utf8JsonWriter writer, NbtTagType tag, JsonSerializerOptions options)

Parameters

writer Utf8JsonWriter

The writer to write to.

tag NbtTagType

options JsonSerializerOptions

An object that specifies serialization options to use.