HyCodeYourTale
classpublicPriority 3

AssetBuilderCodec

com.hypixel.hytale.assetstore.codec.AssetBuilderCodec

8

Methods

8

Public Methods

5

Fields

1

Constructors

Constants

KeyedCodec<Map<String, String[]>>TAGS_CODEC= new KeyedCodec<>("Tags", new MapCodec<>(Codec.STRING_ARRAY, HashMap::new))
StringTAG_DOCUMENTATION= "Tags are a general way to describe an asset that can be interpreted by other systems in a way th...

Constructors

protected
AssetBuilderCodec(AssetBuilderCodec.Builder<K, T> builder)

Methods

Public Methods (8)

public
AssetBuilderCodec<K, T> build()
@Nonnull
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
ObjectSchema toSchema(SchemaContext context)
@Nonnull@Override
public
ObjectSchema toSchema(SchemaContext context, T def)
@Nonnull

Fields

Protected Fields (5)

protectedFunction<T, AssetExtraInfo.Data> dataGetter
protectedBiConsumer<T, AssetExtraInfo.Data> dataSetter
protectedKeyedCodec<K> idCodec
protectedBiConsumer<T, K> idSetter
protectedKeyedCodec<K> parentCodec

Related Classes