Class BlockTypeAssetMap<K,T extends JsonAssetWithMap<K,BlockTypeAssetMap<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.BlockTypeAssetMap<K,T>
public class BlockTypeAssetMap<K,T extends JsonAssetWithMap<K,BlockTypeAssetMap<K,T>>>
extends AssetMapWithIndexes<K,T>
-
Nested Class Summary
Nested classes/interfaces inherited from class com.hypixel.hytale.assetstore.map.DefaultAssetMap
DefaultAssetMap.AssetRef<T> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate T[]private final ReentrantLockprivate final IntFunction<T[]> Deprecated.private final it.unimi.dsi.fastutil.objects.Object2IntMap<String> Deprecated.private final it.unimi.dsi.fastutil.objects.Object2IntMap<K> private final StampedLockprivate final AtomicIntegerFields inherited from class com.hypixel.hytale.assetstore.map.AssetMapWithIndexes
indexedTagStorage, NOT_FOUND, unmodifiableIndexedTagStorageFields inherited from class com.hypixel.hytale.assetstore.map.DefaultAssetMap
assetChainMap, assetChildren, assetMap, assetMapLock, DEFAULT_PACK_KEY, EMPTY_PAIR_ARRAY, packAssetKeys, pathToKeyMap, tagStorage, unmodifiableTagKeys, unmodifiableTagStorage -
Constructor Summary
ConstructorsConstructorDescriptionBlockTypeAssetMap(IntFunction<T[]> arrayProvider, Function<T, String> groupGetter) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidclear()getAsset(int index) getAssetOrDefault(int index, T def) intgetGroupId(String group) String[]intintgetIndexOrDefault(K key, int def) intit.unimi.dsi.fastutil.objects.ObjectSet<K> getSubKeys(K key) protected voidputAll(String packKey, AssetCodec<K, T> codec, Map<K, T> loadedAssets, Map<K, Path> loadedKeyToPathMap, Map<K, Set<K>> loadedAssetChildren) private voidprivate voidMethods inherited from class com.hypixel.hytale.assetstore.map.AssetMapWithIndexes
getIndexesForTag, putAssetTag, putAssetTag, putAssetTags, requireReplaceOnRemoveMethods inherited from class com.hypixel.hytale.assetstore.map.DefaultAssetMap
getAsset, getAsset, getAssetCount, getAssetMap, getAssetPack, getChildren, getKeys, getKeysForPack, getKeysForTag, getPath, getPathMap, getTagCount, getTagIndexes, putAssetTag
-
Field Details
-
nextIndex
-
keyToIndexLock
-
keyToIndex
-
arrayProvider
@Nonnull private final IntFunction<T extends JsonAssetWithMap<K,BlockTypeAssetMap<K, arrayProviderT>>[]> -
arrayLock
-
array
-
subKeyMap
-
groupGetter
@Deprecated private final Function<T extends JsonAssetWithMap<K,BlockTypeAssetMap<K, groupGetterT>>, String> Deprecated. -
groupMap
Deprecated.
-
-
Constructor Details
-
BlockTypeAssetMap
-
-
Method Details
-
getIndex
-
getIndexOrDefault
-
getNextIndex
public int getNextIndex() -
getAsset
-
getAssetOrDefault
-
getSubKeys
-
getGroupId
-
getGroups
-
clear
protected void clear()- Overrides:
clearin classAssetMapWithIndexes<K,T extends JsonAssetWithMap<K, BlockTypeAssetMap<K, T>>>
-
putAll
protected void putAll(@Nonnull String packKey, @Nonnull AssetCodec<K, T> codec, @Nonnull Map<K, T> loadedAssets, @Nonnull Map<K, Path> loadedKeyToPathMap, @Nonnull Map<K, Set<K>> loadedAssetChildren) - Overrides:
putAllin classDefaultAssetMap<K,T extends JsonAssetWithMap<K, BlockTypeAssetMap<K, T>>>
-
putAll0
-
remove
- Overrides:
removein classDefaultAssetMap<K,T extends JsonAssetWithMap<K, BlockTypeAssetMap<K, T>>>
-
remove
protected Set<K> remove(@Nonnull String packKey, @Nonnull Set<K> keys, @Nonnull List<Map.Entry<String, Object>> pathsToReload) - Overrides:
removein classDefaultAssetMap<K,T extends JsonAssetWithMap<K, BlockTypeAssetMap<K, T>>>
-
remove0
-