Class ResourcePackGenerateEvent

java.lang.Object
org.bukkit.event.Event
com.github.darksoulq.abyssallib.server.event.custom.server.ResourcePackGenerateEvent

public class ResourcePackGenerateEvent extends org.bukkit.event.Event
Event triggered when a resource pack is generated by AbyssalLib.

This event is fired after the resource pack has been fully created and written to disk. It is not cancellable.

  • Nested Class Summary

    Nested classes/interfaces inherited from class org.bukkit.event.Event

    org.bukkit.event.Event.Result
  • Constructor Summary

    Constructors
    Constructor
    Description
    ResourcePackGenerateEvent(@NotNull String pluginId, @NotNull File zip)
    Constructs a new ResourcePackGenerateEvent.
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.bukkit.event.HandlerList
     
    @NotNull org.bukkit.event.HandlerList
    Returns the list of handlers for this event.
    @NotNull String
    Returns the mod ID that triggered the resource pack generation.
    @NotNull File
    zip()
    Returns the zipped resource pack file.

    Methods inherited from class org.bukkit.event.Event

    callEvent, getEventName, isAsynchronous

    Methods inherited from class Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ResourcePackGenerateEvent

      public ResourcePackGenerateEvent(@NotNull @NotNull String pluginId, @NotNull @NotNull File zip)
      Constructs a new ResourcePackGenerateEvent.
      Parameters:
      pluginId - The mod ID responsible for generating the resource pack.
      zip - The resulting zip file of the generated resource pack.
  • Method Details

    • pluginId

      @NotNull public @NotNull String pluginId()
      Returns the mod ID that triggered the resource pack generation.
      Returns:
      The mod ID as a String.
    • zip

      @NotNull public @NotNull File zip()
      Returns the zipped resource pack file.
      Returns:
      The generated resource pack as a File.
    • getHandlers

      @NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()
      Returns the list of handlers for this event.
      Specified by:
      getHandlers in class org.bukkit.event.Event
      Returns:
      The HandlerList for this event.
    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()