Skip to content

IndexedLookupTableAssetMap

Package: com.hypixel.hytale.assetstore.map

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

Combines auto-incrementing index assignment with a dense array for O(1) index-based asset retrieval. Similar to BlockTypeAssetMap but without group tracking or sub-key support.

public int getIndex(K key)
public int getIndexOrDefault(K key, int def)
public int getNextIndex()
@Nullable
public T getAsset(int index)
public T getAssetOrDefault(int index, T def)
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.