Skip to content

Class NbtLongJsonConverter

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

Writes NBT signed 64-bit integer tags as JSON numbers.

public class NbtLongJsonConverter : JsonConverter<NbtLong>

Inheritance

objectJsonConverterJsonConverter<NbtLong>NbtLongJsonConverter

Inherited Members

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

NbtLong

The converted value.

Write(Utf8JsonWriter, NbtLong, JsonSerializerOptions)

Writes a specified value as JSON.

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

Parameters

writer Utf8JsonWriter

The writer to write to.

tag NbtLong

options JsonSerializerOptions

An object that specifies serialization options to use.