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
  • Constructor Details

    • GenerateAssetsEvent

      public GenerateAssetsEvent(Class<T> tClass, M assetMap, @Nonnull Map<K,T> loadedAssets, Map<K,Set<K>> assetChildren)
  • Method Details

    • getAssetClass

      public Class<T> getAssetClass()
    • getLoadedAssets

      @Nonnull public Map<K,T> getLoadedAssets()
    • getAssetMap

      public M getAssetMap()
    • addChildAsset

      public void addChildAsset(K childKey, T asset, @Nonnull K parent)
    • addChildAsset

      @SafeVarargs public final void addChildAsset(K childKey, T asset, @Nonnull K... parents)
    • 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

      public void processEvent(@Nonnull String hookName)
      Description copied from interface: IProcessedEvent
      Called to process the event with the given hook name.
      Specified by:
      processEvent in interface IProcessedEvent
      Parameters:
      hookName - the name of the hook to process the event with
    • toString

      @Nonnull public String toString()
      Overrides:
      toString in class Object