类 DominionSetEnvFlagEvent
java.lang.Object
org.bukkit.event.Event
cn.lunadeer.dominion.events.CallableEvent
cn.lunadeer.dominion.events.ResultEvent
cn.lunadeer.dominion.events.dominion.modify.DominionModifyEvent
cn.lunadeer.dominion.events.dominion.modify.DominionSetEnvFlagEvent
- 所有已实现的接口:
org.bukkit.event.Cancellable
Event triggered when an environmental flag is set for a Dominion in the Dominion system.
-
嵌套类概要
从类继承的嵌套类/接口 org.bukkit.event.Event
org.bukkit.event.Event.Result -
构造器概要
构造器构造器说明DominionSetEnvFlagEvent(@NotNull org.bukkit.command.CommandSender operator, @NotNull DominionDTO dominion, @NotNull EnvFlag flag, boolean newValue) Constructs a new DominionSetEnvFlagEvent. -
方法概要
修饰符和类型方法说明getFlag()Gets the environmental flag being set.booleanGets the new value of the environmental flag.booleanGets the old value of the environmental flag.voidsetNewValue(boolean newValue) Sets the new value of the environmental flag.从类继承的方法 cn.lunadeer.dominion.events.dominion.modify.DominionModifyEvent
getDominion, setDominion从类继承的方法 cn.lunadeer.dominion.events.ResultEvent
getOperator, isCancelled, setCancelled从类继承的方法 cn.lunadeer.dominion.events.CallableEvent
call, getHandlerList, getHandlers从类继承的方法 org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
构造器详细资料
-
DominionSetEnvFlagEvent
public DominionSetEnvFlagEvent(@NotNull @NotNull org.bukkit.command.CommandSender operator, @NotNull @NotNull DominionDTO dominion, @NotNull @NotNull EnvFlag flag, boolean newValue) Constructs a new DominionSetEnvFlagEvent.- 参数:
operator- the command sender who initiated the eventdominion- the dominion for which the flag is being setflag- the environmental flag being setnewValue- the new value of the flag
-
-
方法详细资料
-
getFlag
Gets the environmental flag being set.- 返回:
- the environmental flag
-
getOldValue
public boolean getOldValue()Gets the old value of the environmental flag.- 返回:
- the old value of the environmental flag
-
getNewValue
public boolean getNewValue()Gets the new value of the environmental flag.- 返回:
- the new value of the environmental flag
-
setNewValue
public void setNewValue(boolean newValue) Sets the new value of the environmental flag.- 参数:
newValue- the new value to set
-