类 DominionSetMapColorEvent
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.DominionSetMapColorEvent
- 所有已实现的接口:
org.bukkit.event.Cancellable
Event that handles setting the map color of a dominion.
-
嵌套类概要
从类继承的嵌套类/接口 org.bukkit.event.Event
org.bukkit.event.Event.Result -
构造器概要
构造器构造器说明DominionSetMapColorEvent(@NotNull org.bukkit.command.CommandSender operator, @NotNull DominionDTO dominion, @NotNull org.bukkit.Color newColor) Constructs a new DominionSetMapColorEvent. -
方法概要
修饰符和类型方法说明@NotNull org.bukkit.ColorGets the new color of the dominion.@NotNull org.bukkit.ColorGets the old color of the dominion.voidsetNewColor(@NotNull org.bukkit.Color newColor) Sets the new color for the dominion.从类继承的方法 cn.lunadeer.dominion.events.dominion.modify.DominionModifyEvent
afterModified, getDominion, getFutureToComplete, setDominion从类继承的方法 cn.lunadeer.dominion.events.ResultEvent
getOperator, isCancelled, setCancelled从类继承的方法 cn.lunadeer.dominion.events.CallableEvent
call, getHandlerList, getHandlers从类继承的方法 org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
构造器详细资料
-
DominionSetMapColorEvent
public DominionSetMapColorEvent(@NotNull @NotNull org.bukkit.command.CommandSender operator, @NotNull @NotNull DominionDTO dominion, @NotNull @NotNull org.bukkit.Color newColor) Constructs a new DominionSetMapColorEvent.- 参数:
operator- the command sender who initiated the eventdominion- the dominion whose map color is being setnewColor- the new color to set for the dominion
-
-
方法详细资料
-
getOldColor
@NotNull public @NotNull org.bukkit.Color getOldColor()Gets the old color of the dominion.- 返回:
- the old color
-
setNewColor
public void setNewColor(@NotNull @NotNull org.bukkit.Color newColor) Sets the new color for the dominion.- 参数:
newColor- the new color to set
-
getNewColor
@NotNull public @NotNull org.bukkit.Color getNewColor()Gets the new color of the dominion.- 返回:
- the new color
-