类 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,MemberAddedEvent,MemberRemovedEvent
Represents an event that can be cancelled and involves a command sender.
-
嵌套类概要
从类继承的嵌套类/接口 org.bukkit.event.Event
org.bukkit.event.Event.Result -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明org.bukkit.command.CommandSenderGets the command sender who initiated the event.booleanChecks if the event is cancelled.voidsetCancelled(boolean b) Sets the cancellation state of the event.从类继承的方法 cn.lunadeer.dominion.events.CallableEvent
call, getHandlerList, getHandlers从类继承的方法 org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
构造器详细资料
-
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
-