Skip to content

AssetCodecMapCodec

Package: com.hypixel.hytale.assetstore.codec

public class AssetCodecMapCodec<K, T extends JsonAsset<K>> extends StringCodecMapCodec<T, AssetBuilderCodec<K, T>> implements AssetCodec<K, T>
ModifierTypeName
protected finalKeyedCodec<K>idCodec
protected finalKeyedCodec<K>parentCodec
protected finalBiConsumer<T, K>idSetter
protected finalFunction<T, K>idGetter
protected finalBiConsumer<T, AssetExtraInfo.Data>dataSetter
protected finalFunction<T, AssetExtraInfo.Data>dataGetter
AssetBuilderCodec<K, T>assetCodec
BsonValueid
AssetBuilderCodec<K, T>codec
AssetBuilderCodec<K, T>defaultCodec
Stringid
JsonAssetvar7
JsonAssetvar8
Supplier<T>supplier
Tt
Schemaschema
AssetBuilderCodec<K, T>def
SchemaidField
SchemaparentField
AssetBuilderCodec<K, T>bc
SchemaparentSchema
Schema.InheritSettingssettings
ModifierSignature
public`AssetCodecMapCodec(Codec idCodec,
BiConsumer<T, K> idSetter,
Function<T, K> idGetter,
BiConsumer<T, AssetExtraInfo.Data> dataSetter,
Function<T, AssetExtraInfo.Data> dataGetter)` |

| public | AssetCodecMapCodec(String key, Codec<K> idCodec, BiConsumer<T, K> idSetter, Function<T, K> idGetter, BiConsumer<T, AssetExtraInfo.Data> dataSetter, Function<T, AssetExtraInfo.Data> dataGetter) | | public | AssetCodecMapCodec(Codec<K> idCodec, BiConsumer<T, K> idSetter, Function<T, K> idGetter, BiConsumer<T, AssetExtraInfo.Data> dataSetter, Function<T, AssetExtraInfo.Data> dataGetter, boolean allowDefault) | | public | AssetCodecMapCodec(String key, Codec<K> idCodec, BiConsumer<T, K> idSetter, Function<T, K> idGetter, BiConsumer<T, AssetExtraInfo.Data> dataSetter, Function<T, AssetExtraInfo.Data> dataGetter, boolean allowDefault) |

ModifierReturn TypeSignature
publicKeyedCodec<K>getKeyCodec()
publicKeyedCodec<K>getParentCodec()
publicAssetExtraInfo.DatagetData(T t)
publicAssetCodecMapCodec<K, T>register(@Nonnull String id, Class<? extends T> aClass, BuilderCodec<? extends T> codec)
publicAssetCodecMapCodec<K, T>register(@Nonnull Priority priority, @Nonnull String id, Class<? extends T> aClass, BuilderCodec<? extends T> codec)
public TdecodeAndInherit(@Nonnull BsonDocument document, T parent, ExtraInfo extraInfo)
public voiddecodeAndInherit(@Nonnull BsonDocument document, T t, T parent, ExtraInfo extraInfo)
public TdecodeAndInheritJson(@Nonnull RawJsonReader reader, @Nullable T parent, @Nonnull ExtraInfo extraInfo)
public voiddecodeAndInheritJson(@Nonnull RawJsonReader reader, T t, @Nullable T parent, @Nonnull ExtraInfo extraInfo)
publicTdecodeJsonAsset(@Nonnull RawJsonReader reader, @Nonnull AssetExtraInfo<K> extraInfo)
publicTdecodeAndInheritJsonAsset(@Nonnull RawJsonReader reader, @Nullable T parent, @Nonnull AssetExtraInfo<K> extraInfo)
throw newCodecException("This BuilderCodec is for an abstract or direct codec. To use this codec you must specify an existing object to decode into.")
publicSchematoSchema(@Nonnull SchemaContext context)
protectedvoidmutateChildSchema(String key, @Nonnull SchemaContext context, BuilderCodec<? extends T> c, @Nonnull ObjectSchema objectSchema)
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.