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
  • 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
    调用事件,等价于 paper 的 callEvent 方法,此处定义是为了兼容 Spigot。
    static org.bukkit.event.HandlerList
     
    @NotNull org.bukkit.event.HandlerList
     

    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()
    • getHandlers

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

      public boolean call()
      调用事件,等价于 paper 的 callEvent 方法,此处定义是为了兼容 Spigot。
      Returns:
      事件是否成功执行,如果事件被取消则返回 false