classpublicPriority 3
AssetCodecMapCodec
com.hypixel.hytale.assetstore.codec.AssetCodecMapCodec
12
Methods
12
Public Methods
6
Fields
4
Constructors
Constructors
public
AssetCodecMapCodec(Codec<K> 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)Methods
Public Methods (12)
public
T decodeAndInherit(BsonDocument document, T parent, ExtraInfo extraInfo)public
void decodeAndInherit(BsonDocument document, T t, T parent, ExtraInfo extraInfo)public
T decodeAndInheritJson(RawJsonReader reader, T parent, ExtraInfo extraInfo)throws IOException
public
void decodeAndInheritJson(RawJsonReader reader, T t, T parent, ExtraInfo extraInfo)throws IOException
public
T decodeAndInheritJsonAsset(RawJsonReader reader, T parent, AssetExtraInfo<K> extraInfo)throws IOException
@Override
public
T decodeJsonAsset(RawJsonReader reader, AssetExtraInfo<K> extraInfo)throws IOException
@Override
public
AssetExtraInfo.Data getData(T t)@Override
public
KeyedCodec<K> getKeyCodec()@Nonnull@Override
public
KeyedCodec<K> getParentCodec()@Nonnull@Override
public
AssetCodecMapCodec<K, T> register(String id, Class<? extends T> aClass, BuilderCodec<? extends T> codec)@Nonnull
public
AssetCodecMapCodec<K, T> register(Priority priority, String id, Class<? extends T> aClass, BuilderCodec<? extends T> codec)@Nonnull
public
Schema toSchema(SchemaContext context)@Nonnull@Override
Fields
Protected Fields (6)
protected
Function<T, AssetExtraInfo.Data> dataGetterprotected
BiConsumer<T, AssetExtraInfo.Data> dataSetterprotected
KeyedCodec<K> idCodecprotected
Function<T, K> idGetterprotected
BiConsumer<T, K> idSetterprotected
KeyedCodec<K> parentCodec