类 ResultEvent

java.lang.Object
org.bukkit.event.Event
cn.lunadeer.dominion.events.CallableEvent
cn.lunadeer.dominion.events.ResultEvent
所有已实现的接口:
org.bukkit.event.Cancellable
直接已知子类:
DominionCreateEvent, DominionDeleteEvent, DominionModifyEvent, GroupAddMemberEvent, GroupCreateEvent, GroupDeleteEvent, GroupRemoveMemberEvent, GroupRenamedEvent, GroupSetFlagEvent, MemberAddedEvent, MemberRemovedEvent, MemberSetFlagEvent

public class ResultEvent extends CallableEvent implements org.bukkit.event.Cancellable
Represents an event that can be cancelled and involves a command sender.
  • 嵌套类概要

    从类继承的嵌套类/接口 org.bukkit.event.Event

    org.bukkit.event.Event.Result
  • 构造器概要

    构造器
    构造器
    说明
    ResultEvent(org.bukkit.command.CommandSender operator)
    Constructs a new ResultEvent.
  • 方法概要

    修饰符和类型
    方法
    说明
    org.bukkit.command.CommandSender
    Gets the command sender who initiated the event.
    boolean
    Checks if the event is cancelled.
    void
    setCancelled(boolean b)
    Sets the cancellation state of the event.

    从类继承的方法 cn.lunadeer.dominion.events.CallableEvent

    call, getHandlerList, getHandlers

    从类继承的方法 org.bukkit.event.Event

    callEvent, getEventName, isAsynchronous

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 构造器详细资料

    • ResultEvent

      public ResultEvent(org.bukkit.command.CommandSender operator)
      Constructs a new ResultEvent.
      参数:
      operator - the command sender who initiated the event
  • 方法详细资料

    • getOperator

      public org.bukkit.command.CommandSender getOperator()
      Gets the command sender who initiated the event.
      返回:
      the command sender
    • isCancelled

      public boolean isCancelled()
      Checks if the event is cancelled.
      指定者:
      isCancelled 在接口中 org.bukkit.event.Cancellable
      返回:
      true if the event is cancelled, false otherwise
    • setCancelled

      public void setCancelled(boolean b)
      Sets the cancellation state of the event.
      指定者:
      setCancelled 在接口中 org.bukkit.event.Cancellable
      参数:
      b - true to cancel the event, false to uncancel