deserialize

@NotNull
abstract fun <T> deserialize(@NotNull codec: @NotNull Codec<T>, @NotNull customValue: @NotNull CustomValue): @NotNull T(source)

Deserializes the given custom value with the given codec.

Return

The deserialized object

Parameters

codec

The codec to deserialize with

customValue

The custom value to deserialize

<T>

The type the codec deserializes

See also

<a href="https://fabric.mineblock11.dev/misc/codecs">Codec docuemntation</a>