HyCodeYourTale
classpublicPriority 3

AssetRegistry

com.hypixel.hytale.assetstore.AssetRegistry

7

Methods

7

Public Methods

1

Fields

1

Constructors

Constants

ReadWriteLockASSET_LOCK= new ReentrantReadWriteLock()
Object2IntMap<String>CLIENT_TAG_MAP= new Object2IntOpenHashMap()
AtomicIntegerNEXT_TAG_INDEX= new AtomicInteger()
StampedLockTAG_LOCK= new StampedLock()
Object2IntMap<String>TAG_MAP= new Object2IntOpenHashMap()
intTAG_NOT_FOUND= -2147483648

Constructors

public
AssetRegistry()

Methods

Public Methods (7)

publicstatic
<K, T extends JsonAssetWithMap<K, M>, M extends AssetMap<K, T>> AssetStore<K, T, M> getAssetStore(Class<T> tClass)
publicstatic
Object2IntMap<String> getClientTags()
@Nonnull
publicstatic
int getOrCreateTagIndex(String tag)
publicstatic
int getTagIndex(String tag)
publicstatic
<K, T extends JsonAssetWithMap<K, M>, M extends AssetMap<K, T>, S extends AssetStore<K, T, M>> S register(S assetStore)
@Nonnull
publicstatic
boolean registerClientTag(String tag)
publicstatic
<K, T extends JsonAssetWithMap<K, M>, M extends AssetMap<K, T>, S extends AssetStore<K, T, M>> void unregister(S assetStore)

Fields

Public Fields (1)

publicstaticboolean HAS_INIT

Related Classes