Class DefaultAssetMap<K,T extends JsonAsset<K>>
java.lang.Object
com.hypixel.hytale.assetstore.AssetMap<K,T>
com.hypixel.hytale.assetstore.map.DefaultAssetMap<K,T>
- Direct Known Subclasses:
AssetMapWithIndexes
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Map<K, DefaultAssetMap.AssetRef<T>[]> protected final StampedLockstatic final Stringstatic final DefaultAssetMap.AssetRef[]protected final it.unimi.dsi.fastutil.ints.IntSet -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidclear()intprivate TgetAssetForPack0(String packKey, K key) getAssetPack(K key) private StringgetAssetPack0(K key) private DefaultAssetMap.AssetRef<T> getAssetRef(K key) getChildren(K key) getKeysForPack(String name) getKeysForTag(int tagIndex) private PathgetPathMap(String packKey) intit.unimi.dsi.fastutil.ints.IntSetprotected voidputAll(String packKey, AssetCodec<K, T> codec, Map<K, T> loadedAssets, Map<K, Path> loadedKeyToPathMap, Map<K, Set<K>> loadedAssetChildren) protected voidputAssetTag(K key, int tag) protected voidputAssetTags(AssetCodec<K, T> codec, Map<K, T> loadedAssets) Methods inherited from class com.hypixel.hytale.assetstore.AssetMap
requireReplaceOnRemove
-
Field Details
-
EMPTY_PAIR_ARRAY
-
DEFAULT_PACK_KEY
- See Also:
-
assetMapLock
-
assetMap
-
assetChainMap
-
packAssetKeys
-
pathToKeyMap
-
assetChildren
-
tagStorage
-
unmodifiableTagStorage
-
unmodifiableTagKeys
protected final it.unimi.dsi.fastutil.ints.IntSet unmodifiableTagKeys
-
-
Constructor Details
-
DefaultAssetMap
public DefaultAssetMap() -
DefaultAssetMap
-
-
Method Details
-
getAsset
-
getAsset
-
getAssetForPack0
-
getPath
-
getAssetPack
-
getPath0
-
getAssetPack0
-
getAssetRef
-
getKeys
-
getChildren
-
getAssetCount
public int getAssetCount() -
getAssetMap
-
getPathMap
-
getKeysForTag
-
getTagIndexes
@Nonnull public it.unimi.dsi.fastutil.ints.IntSet getTagIndexes() -
getTagCount
public int getTagCount() -
clear
protected void clear() -
putAll
-
putAssetTags
-
putAssetTag
-
getKeysForPack
-
remove
-
remove
-