Class GenerateAssetsEvent<K,T extends JsonAssetWithMap<K,M>,M extends AssetMap<K,T>>
java.lang.Object
com.hypixel.hytale.assetstore.event.AssetsEvent<K,T>
com.hypixel.hytale.assetstore.event.GenerateAssetsEvent<K,T,M>
- All Implemented Interfaces:
IBaseEvent<Class<T>>,IEvent<Class<T>>,IProcessedEvent
public class GenerateAssetsEvent<K,T extends JsonAssetWithMap<K,M>,M extends AssetMap<K,T>>
extends AssetsEvent<K,T>
implements IProcessedEvent
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classGenerateAssetsEvent.ParentReference<P extends JsonAssetWithMap<PK,?>, PK> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddChildAsset(K childKey, T asset, K parent) final voidaddChildAsset(K childKey, T asset, K... parents) <P extends JsonAssetWithMap<PK,?>, PK>
voidaddChildAssetWithReference(K childKey, T asset, Class<P> parentAssetClass, PK parentKey) voidaddChildAssetWithReferences(K childKey, T asset, GenerateAssetsEvent.ParentReference<?, ?>... parents) voidprocessEvent(String hookName) toString()
-
Field Details
-
tClass
-
assetMap
-
loadedAssets
-
assetChildren
-
unmodifiableLoadedAssets
-
addedAssets
-
addedAssetChildren
-
addedChildAssetsMap
-
before
private long before
-
-
Constructor Details
-
GenerateAssetsEvent
-
-
Method Details
-
getAssetClass
-
getLoadedAssets
-
getAssetMap
-
addChildAsset
-
addChildAsset
-
addChildAssetWithReference
public <P extends JsonAssetWithMap<PK,?>, void addChildAssetWithReferencePK> (K childKey, T asset, Class<P> parentAssetClass, @Nonnull PK parentKey) -
addChildAssetWithReferences
public void addChildAssetWithReferences(K childKey, T asset, GenerateAssetsEvent.ParentReference<?, ?>... parents) -
processEvent
- Specified by:
processEventin interfaceIProcessedEvent
-
toString
-