Skip to content

BlockTypeAssetMap

Package: com.hypixel.hytale.assetstore.map

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

Specialized asset map for block types. Maintains a dense array for O(1) index-based lookup, a key-to-index mapping, sub-key grouping, and deprecated group ID tracking. Thread-safe via StampedLock and ReentrantLock.

public int getIndex(K key)
public int getNextIndex()
@Nullable
public T getAsset(int index)
@Nonnull
public ObjectSet<K> getSubKeys(K key)
public int getGroupId(String group)
@Nonnull
public String[] getGroups()
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.