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

  • 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, 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, GenerateAssetsEvent.ParentReference<?,?>... parents)
    • processEvent

      public void processEvent(@Nonnull String hookName)
      Specified by:
      processEvent in interface IProcessedEvent
    • toString

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