Class AssetRegistry

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

public class AssetRegistry extends Object
Since:
29/8/17.
Version:
1.0
  • 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:
  • 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)
      Returns:
      Returns true if the tag wasn't registered previously
    • getClientTags

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