Package com.hypixel.hytale.codec
Interface Codec<T>
- All Superinterfaces:
RawJsonCodec<T>,SchemaConvertable<T>
- All Known Subinterfaces:
AssetCodec<K,,T> DirectDecodeCodec<T>,InheritCodec<T>,ValidatableCodec<T>
- All Known Implementing Classes:
ACodecMapCodec,AMapProvidedMapCodec,ArrayCodec,ArraySchema.ItemOrItems,AssetBuilderCodec,AssetCodecMapCodec,BoolDoublePairCodec,BooleanCodec,BsonDocumentCodec,BsonFunctionCodec,BuilderCodec,BuilderCodecMapCodec,ByteCodec,CodecMapCodec,ColorAlphaCodec,ColorCodec,ContainedAssetCodec,DocumentContainingCodec,DoubleArrayCodec,DoubleCodec,EnumCodec,EnumMapCodec,Float2ObjectMapCodec,FloatArrayCodec,FloatCodec,FloatRangeArrayCodec,FunctionCodec,InetSocketAddressCodec,Int2ObjectMapCodec,IntArrayCodec,IntegerCodec,IntegerSchema.IntegerOrSchema,InteractionPriorityCodec,IntRangeArrayCodec,LocalizableString.LocalizableStringCodec,LongArrayCodec,LongCodec,MapCodec,MapProvidedMapCodec,MergedEnumMapCodec,Message.MaybeBoolCodec,Message.ParamValueCodec,MetricResults.MetricResultsCodec,MetricsRegistry,NumberSchema.DoubleOrSchema,Object2DoubleMapCodec,Object2FloatMapCodec,Object2IntMapCodec,ObjectCodecMapCodec,ObjectMapCodec,Schema.ArrayOrNull,Schema.BooleanOrSchema,Schema.StringOrBlank,SetCodec,Short2ObjectMapCodec,ShortCodec,StoredCodec,StringCodec,StringCodecMapCodec,StringIntegerCodec,UUIDBinaryCodec,ValueCodec,Vector2dArrayCodec,Vector3dArrayCodec,Vector3iArrayCodec,WeightedMapCodec
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Patternstatic final BooleanCodecstatic final BsonDocumentCodecDeprecated.static final ByteCodecstatic final Codec<byte[]> Deprecated.static final DoubleCodecstatic final DoubleArrayCodecstatic final FunctionCodec<String, Duration> static final FunctionCodec<Double, Duration> static final FloatCodecstatic final FloatArrayCodecstatic final FunctionCodec<String, Instant> static final IntArrayCodecstatic final IntegerCodecstatic final FunctionCodec<String, Level> static final LongCodecstatic final LongArrayCodecstatic final FunctionCodec<String, Path> static final ShortCodecstatic final StringCodecstatic final ArrayCodec<String> static final UUIDBinaryCodecstatic final FunctionCodec<String, UUID> -
Method Summary
Modifier and TypeMethodDescriptiondefault Tdecode(org.bson.BsonValue bsonValue) Deprecated.default TdecodeJson(RawJsonReader reader, ExtraInfo extraInfo) default org.bson.BsonValueDeprecated.org.bson.BsonValuestatic booleanisNullBsonValue(org.bson.BsonValue bsonValue) Methods inherited from interface com.hypixel.hytale.codec.RawJsonCodec
decodeJsonMethods inherited from interface com.hypixel.hytale.codec.schema.SchemaConvertable
toSchema, toSchema
-
Field Details
-
BSON_DOCUMENT
Deprecated. -
STRING
-
BOOLEAN
-
DOUBLE
-
FLOAT
-
BYTE
-
SHORT
-
INTEGER
-
LONG
-
BASE64_PATTERN
-
BYTE_ARRAY
Deprecated. -
DOUBLE_ARRAY
-
FLOAT_ARRAY
-
INT_ARRAY
-
LONG_ARRAY
-
STRING_ARRAY
-
PATH
-
INSTANT
-
DURATION
-
DURATION_SECONDS
-
LOG_LEVEL
-
UUID_BINARY
-
UUID_STRING
-
-
Method Details
-
decode
Deprecated. -
decode
-
encode
Deprecated. -
encode
-
decodeJson
@Nullable default T decodeJson(@Nonnull RawJsonReader reader, ExtraInfo extraInfo) throws IOException - Specified by:
decodeJsonin interfaceRawJsonCodec<T>- Throws:
IOException
-
isNullBsonValue
static boolean isNullBsonValue(@Nullable org.bson.BsonValue bsonValue)
-