Class XPrisonEnchantRegisterEvent

java.lang.Object
org.bukkit.event.Event
dev.drawethree.xprison.api.shared.events.XPrisonEvent
dev.drawethree.xprison.api.enchants.events.XPrisonEnchantRegisterEvent

public class XPrisonEnchantRegisterEvent extends XPrisonEvent
Event fired when a XPrisonEnchantment is registered into the system. This event can be used to initialize or react to newly available enchants.
  • Nested Class Summary

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

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

    Constructors
    Constructor
    Description
    Constructs a new XPrisonEnchantRegisterEvent.
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.bukkit.event.HandlerList
    Returns the handler list for this event type.
    @NotNull org.bukkit.event.HandlerList
     

    Methods inherited from class org.bukkit.event.Event

    getEventName, isAsynchronous

    Methods inherited from class java.lang.Object

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

    • XPrisonEnchantRegisterEvent

      public XPrisonEnchantRegisterEvent(XPrisonEnchantment enchantment)
      Constructs a new XPrisonEnchantRegisterEvent.
      Parameters:
      enchantment - the enchantment being registered
  • Method Details

    • getHandlers

      @NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event
    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()
      Returns the handler list for this event type.
      Returns:
      the static handler list