Class AssetRegistry

java.lang.Object
com.hypixel.hytale.assetstore.AssetRegistry

public class AssetRegistry extends Object
  • Field Details

    • ASSET_LOCK

      public static final ReadWriteLock ASSET_LOCK
    • HAS_INIT

      public static boolean HAS_INIT
    • TAG_NOT_FOUND

      public static final int TAG_NOT_FOUND
      See Also:
    • storeMap

      private static final Map<Class<? extends JsonAssetWithMap>,AssetStore<?,?,?>> storeMap
    • storeMapUnmodifiable

      private static final Map<Class<? extends JsonAssetWithMap>,AssetStore<?,?,?>> storeMapUnmodifiable
    • NEXT_TAG_INDEX

      private static final AtomicInteger NEXT_TAG_INDEX
    • TAG_LOCK

      private static final StampedLock TAG_LOCK
    • TAG_MAP

      private static final it.unimi.dsi.fastutil.objects.Object2IntMap<String> TAG_MAP
    • CLIENT_TAG_MAP

      private static final it.unimi.dsi.fastutil.objects.Object2IntMap<String> CLIENT_TAG_MAP
  • Constructor Details

    • AssetRegistry

      public AssetRegistry()
  • Method Details

    • getStoreMap

      @Nonnull public static Map<Class<? extends JsonAssetWithMap>,AssetStore<?,?,?>> getStoreMap()
    • getAssetStore

      public static <K, T extends JsonAssetWithMap<K, M>, M extends AssetMap<K, T>> AssetStore<K,T,M> getAssetStore(Class<T> tClass)
    • register

      @Nonnull public static <K, T extends JsonAssetWithMap<K, M>, M extends AssetMap<K, T>, S extends AssetStore<K, T, M>> S register(@Nonnull S assetStore)
    • unregister

      public static <K, T extends JsonAssetWithMap<K, M>, M extends AssetMap<K, T>, S extends AssetStore<K, T, M>> void unregister(@Nonnull S assetStore)
    • getTagIndex

      public static int getTagIndex(@Nonnull String tag)
    • getOrCreateTagIndex

      public static int getOrCreateTagIndex(@Nonnull String tag)
    • registerClientTag

      public static boolean registerClientTag(@Nonnull String tag)
    • getClientTags

      @Nonnull public static it.unimi.dsi.fastutil.objects.Object2IntMap<String> getClientTags()