BlockHitResultSerializer¶
object BlockHitResultSerializer : KSerializer<BlockHitResult>
A KSerializer for BlockHitResult that encodes the hit location, face direction, block position, whether the hit is inside the block, and whether it was a miss.
Properties¶
codec¶
Converts a KSerializer into a Codec.
descriptor¶
open override val descriptor: SerialDescriptor
streamCodec¶
val <T : Any> KSerializer<T>.streamCodec: StreamCodec<RegistryFriendlyByteBuf, T>
Converts any KSerializer into a StreamCodec using Cbor
Functions¶
deserialize¶
open override fun deserialize(decoder: Decoder): BlockHitResult
serialize¶
open override fun serialize(encoder: Encoder, value: BlockHitResult)