Class AssetMonitorEvent<T>

java.lang.Object
com.hypixel.hytale.assetstore.event.AssetMonitorEvent<T>
Type Parameters:
T - the type of the event result.
All Implemented Interfaces:
IBaseEvent<T>, IEvent<T>
Direct Known Subclasses:
AssetStoreMonitorEvent, CommonAssetMonitorEvent

public abstract class AssetMonitorEvent<T> extends Object implements IEvent<T>
An event that is called when assets are created, modified, or removed.
  • Constructor Details

    • AssetMonitorEvent

      public AssetMonitorEvent(@Nonnull String assetPack, @Nonnull List<Path> createdOrModified, @Nonnull List<Path> removed, @Nonnull List<Path> createdDirectories, @Nonnull List<Path> removedDirectories)
      Default Constructor for an AssetMonitorEvent instance.
      Parameters:
      assetPack - The asset pack associated with these asset changes.
      createdOrModified - The created or modified files to load.
      removed - The removed files to unload.
      createdDirectories - The created or modified directories.
      removedDirectories - The removed files and directories.
  • Method Details

    • getAssetPack

      @Nonnull public String getAssetPack()
      Returns:
      The asset pack associated with these asset changes.
    • getCreatedOrModifiedFilesToLoad

      @Nonnull public List<Path> getCreatedOrModifiedFilesToLoad()
      Returns:
      the list of created or modified files to load.
    • getRemovedFilesToUnload

      @Nonnull public List<Path> getRemovedFilesToUnload()
      Returns:
      the list of removed files to unload.
    • getRemovedFilesAndDirectories

      @Nonnull public List<Path> getRemovedFilesAndDirectories()
      Returns:
      the list of removed files and directories.
    • getCreatedOrModifiedDirectories

      @Nonnull public List<Path> getCreatedOrModifiedDirectories()
      Returns:
      the list of created or modified directories.