Package com.hypixel.hytale.assetstore
Class AssetRegistry
java.lang.Object
com.hypixel.hytale.assetstore.AssetRegistry
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ReadWriteLockprivate static final it.unimi.dsi.fastutil.objects.Object2IntMap<String> static booleanprivate static final AtomicIntegerprivate static final Map<Class<? extends JsonAssetWithMap>, AssetStore<?, ?, ?>> private static final Map<Class<? extends JsonAssetWithMap>, AssetStore<?, ?, ?>> private static final StampedLockprivate static final it.unimi.dsi.fastutil.objects.Object2IntMap<String> static final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <K,T extends JsonAssetWithMap<K, M>, M extends AssetMap<K, T>>
AssetStore<K, T, M> getAssetStore(Class<T> tClass) static it.unimi.dsi.fastutil.objects.Object2IntMap<String> static intstatic Map<Class<? extends JsonAssetWithMap>, AssetStore<?, ?, ?>> static intgetTagIndex(String tag) static <K,T extends JsonAssetWithMap<K, M>, M extends AssetMap<K, T>, S extends AssetStore<K, T, M>>
Sregister(S assetStore) static booleanregisterClientTag(String tag) static <K,T extends JsonAssetWithMap<K, M>, M extends AssetMap<K, T>, S extends AssetStore<K, T, M>>
voidunregister(S assetStore)
-
Field Details
-
ASSET_LOCK
-
HAS_INIT
public static boolean HAS_INIT -
TAG_NOT_FOUND
public static final int TAG_NOT_FOUND- See Also:
-
storeMap
-
storeMapUnmodifiable
-
NEXT_TAG_INDEX
-
TAG_LOCK
-
TAG_MAP
-
CLIENT_TAG_MAP
-
-
Constructor Details
-
AssetRegistry
public AssetRegistry()
-
-
Method Details
-
getStoreMap
-
getAssetStore
public static <K,T extends JsonAssetWithMap<K, AssetStore<K,M>, M extends AssetMap<K, T>> T, getAssetStoreM> (Class<T> tClass) -
register
@Nonnull public static <K,T extends JsonAssetWithMap<K, S registerM>, M extends AssetMap<K, T>, S extends AssetStore<K, T, M>> (@Nonnull S assetStore) -
unregister
public static <K,T extends JsonAssetWithMap<K, void unregisterM>, M extends AssetMap<K, T>, S extends AssetStore<K, T, M>> (@Nonnull S assetStore) -
getTagIndex
-
getOrCreateTagIndex
-
registerClientTag
-
getClientTags
-