Contents
Class IndexedLookupTableAssetMap<K, T extends JsonAssetWithMap<K, IndexedLookupTableAssetMap<K,T>> >
java.lang.Object
com.hypixel.hytale.assetstore.AssetMap<K,T>
com.hypixel.hytale.assetstore.map.DefaultAssetMap<K,T>
com.hypixel.hytale.assetstore.map.AssetMapWithIndexes<K,T>
com.hypixel.hytale.assetstore.map.IndexedLookupTableAssetMap<K,T>
public class IndexedLookupTableAssetMap<K, T extends JsonAssetWithMap<K, IndexedLookupTableAssetMap<K,T>>>
extends AssetMapWithIndexes<K,T>
Store a key to index mapping.
The Index is calculated at load time and so is a runtime only value.
- Since:
- 16/9/17.
- Version:
- 1.0
-
Field Summary
Fields inherited from class AssetMapWithIndexes
NOT_FOUNDFields inherited from class DefaultAssetMap
DEFAULT_PACK_KEY, EMPTY_PAIR_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAsset(int index) getAssetOrDefault(int index, T def) intintgetIndexOrDefault(K key, int def) intMethods inherited from class AssetMapWithIndexes
getIndexesForTag, requireReplaceOnRemoveMethods inherited from class DefaultAssetMap
getAsset, getAsset, getAssetCount, getAssetMap, getAssetPack, getChildren, getKeys, getKeysForPack, getKeysForTag, getPath, getPathMap, getTagCount, getTagIndexes
-
Constructor Details
-
IndexedLookupTableAssetMap
-
-
Method Details
-
getIndex
-
getIndexOrDefault
-
getNextIndex
public int getNextIndex() -
getAsset
-
getAssetOrDefault
-