Skip to content

ProvidedIndexAssetMap

Package: com.hypixel.hytale.assetstore.map

public class ProvidedIndexAssetMap<K, T extends JsonAssetWithMap<K, ProvidedIndexAssetMap<K, T>>> extends AssetMapWithIndexes<K, T>

Asset map where the index is computed from the key and value via an externally-provided ToIntBiFunction. Does not use a dense array.

public int getIndex(K key)
public int getIndexOrDefault(K key, int def)
@Override
public boolean requireReplaceOnRemove()
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.