类 DominionReSizeEvent
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.DominionReSizeEvent
- 所有已实现的接口:
org.bukkit.event.Cancellable
Event triggered when a Dominion's size is modified in the Dominion system.
-
嵌套类概要
嵌套类修饰符和类型类说明static enumEnum representing the direction of size change.static enumEnum representing the type of size change.从类继承的嵌套类/接口 org.bukkit.event.Event
org.bukkit.event.Event.Result -
构造器概要
构造器构造器说明DominionReSizeEvent(@NotNull org.bukkit.command.CommandSender operator, @NotNull DominionDTO dominion, @NotNull DominionReSizeEvent.TYPE type, @NotNull DominionReSizeEvent.DIRECTION direction, int size) Constructs a new DominionReSizeEvent. -
方法概要
修饰符和类型方法说明Gets the direction of the size change.Gets the new cuboid representing the dominion's size after the change.Gets the old cuboid representing the dominion's size before the change.intgetSize()Gets the size of the size change.getType()Gets the type of the size change.booleanChecks if the economy check is skipped.voidsetDirection(DominionReSizeEvent.DIRECTION direction) Sets the direction of the size change.voidsetSize(int size) Sets the size of the size change.voidsetSkipEconomy(boolean skipEconomy) Sets whether to skip the economy check.从类继承的方法 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
-
构造器详细资料
-
DominionReSizeEvent
public DominionReSizeEvent(@NotNull @NotNull org.bukkit.command.CommandSender operator, @NotNull @NotNull DominionDTO dominion, @NotNull @NotNull DominionReSizeEvent.TYPE type, @NotNull @NotNull DominionReSizeEvent.DIRECTION direction, int size) Constructs a new DominionReSizeEvent.- 参数:
operator- the command sender who initiated the eventdominion- the dominion whose size is being changedtype- the type of the size changedirection- the direction of the size changesize- the size of the size change
-
-
方法详细资料
-
setSkipEconomy
public void setSkipEconomy(boolean skipEconomy) Sets whether to skip the economy check.- 参数:
skipEconomy- true to skip the economy check, false otherwise
-
isSkipEconomy
public boolean isSkipEconomy()Checks if the economy check is skipped.- 返回:
- true if the economy check is skipped, false otherwise
-
getOldCuboid
Gets the old cuboid representing the dominion's size before the change.- 返回:
- the old cuboid
-
getType
Gets the type of the size change.- 返回:
- the type of the size change
-
getDirection
Gets the direction of the size change.- 返回:
- the direction of the size change
-
getSize
public int getSize()Gets the size of the size change.- 返回:
- the size of the size change
-
setDirection
Sets the direction of the size change.- 参数:
direction- the direction of the size change
-
setSize
public void setSize(int size) Sets the size of the size change.- 参数:
size- the size of the size change
-
getNewCuboid
Gets the new cuboid representing the dominion's size after the change.- 返回:
- the new cuboid
-