Skip to content

Class NbtCompoundJsonConverter

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

public class NbtCompoundJsonConverter : JsonConverter<NbtCompound>

Inheritance

objectJsonConverterJsonConverter<NbtCompound>NbtCompoundJsonConverter

Inherited Members

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

NbtCompound

The converted value.

Write(Utf8JsonWriter, NbtCompound, JsonSerializerOptions)

Writes a specified value as JSON.

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

Parameters

writer Utf8JsonWriter

The writer to write to.

tag NbtCompound

options JsonSerializerOptions

An object that specifies serialization options to use.