Skip to content

Codec

Package: com.hypixel.hytale.codec

public interface Codec<T> extends RawJsonCodec<T>, SchemaConvertable<T>

Core serialization/deserialization interface for the Hytale codec system. Provides encode/decode for BSON and JSON formats. Includes static codec instances for all primitive types, arrays, strings, paths, durations, instants, UUIDs, and log levels.

ModifierTypeFieldDescription
staticStringCodecSTRINGString codec
staticBooleanCodecBOOLEANBoolean codec
staticDoubleCodecDOUBLEDouble codec
staticFloatCodecFLOATFloat codec
staticByteCodecBYTEByte codec
staticShortCodecSHORTShort codec
staticIntegerCodecINTEGERInteger codec
staticLongCodecLONGLong codec
staticDoubleArrayCodecDOUBLE_ARRAYDouble array codec
staticFloatArrayCodecFLOAT_ARRAYFloat array codec
staticIntArrayCodecINT_ARRAYInt array codec
staticLongArrayCodecLONG_ARRAYLong array codec
staticArrayCodec<String>STRING_ARRAYString array codec
staticFunctionCodec<String, Path>PATHPath codec
staticFunctionCodec<String, Instant>INSTANTInstant codec
staticFunctionCodec<String, Duration>DURATIONDuration codec
staticFunctionCodec<Double, Duration>DURATION_SECONDSDuration-as-seconds codec
staticFunctionCodec<String, Level>LOG_LEVELLog level codec
staticUUIDBinaryCodecUUID_BINARYUUID binary codec
staticFunctionCodec<String, UUID>UUID_STRINGUUID string codec
ModifierReturn TypeSignature
Tdecode(BsonValue bsonValue, ExtraInfo extraInfo)
BsonValueencode(T value, ExtraInfo extraInfo)
defaultTdecodeJson(RawJsonReader reader, ExtraInfo extraInfo)
staticbooleanisNullBsonValue(BsonValue bsonValue)
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.