Class CallableEvent

java.lang.Object
org.bukkit.event.Event
cn.lunadeer.dominion.events.CallableEvent
Direct Known Subclasses:
PlayerCrossDominionBorderEvent, PlayerMoveInDominionEvent, PlayerMoveOutDominionEvent, ResultEvent

public class CallableEvent extends org.bukkit.event.Event
Represents a callable event in the Dominion plugin. This class is designed to be compatible with both Spigot and Paper.
  • Nested Class Summary

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

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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Calls the event, equivalent to Paper's callEvent method.
    static org.bukkit.event.HandlerList
    Gets the static handler list for this event.
    @NotNull org.bukkit.event.HandlerList
    Gets the handlers for this event.

    Methods inherited from class org.bukkit.event.Event

    callEvent, getEventName, isAsynchronous

    Methods inherited from class java.lang.Object

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

    • CallableEvent

      public CallableEvent()
  • Method Details

    • getHandlerList

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

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

      public boolean call()
      Calls the event, equivalent to Paper's callEvent method. This method is defined here for Spigot compatibility.
      Returns:
      true if the event was successfully executed, false if the event was cancelled