Contents
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
- Since:
- 11/9/17.
- Version:
- 1.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classGenerateAssetsEvent.ParentReference<P extends JsonAssetWithMap<PK,?>, PK> -
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) Called to process the event with the given hook name.toString()
-
Constructor Details
-
GenerateAssetsEvent
-
-
Method Details
-
getAssetClass
-
getLoadedAssets
-
getAssetMap
-
addChildAsset
-
addChildAsset
-
addChildAssetWithReference
public <P extends JsonAssetWithMap<PK,?>, PK> void addChildAssetWithReference(K childKey, T asset, Class<P> parentAssetClass, @Nonnull PK parentKey) -
addChildAssetWithReferences
public void addChildAssetWithReferences(K childKey, T asset, @Nonnull GenerateAssetsEvent.ParentReference<?, ?>... parents) -
processEvent
Description copied from interface:IProcessedEventCalled to process the event with the given hook name.- Specified by:
processEventin interfaceIProcessedEvent- Parameters:
hookName- the name of the hook to process the event with
-
toString
-