类 DominionCreateEvent
java.lang.Object
org.bukkit.event.Event
cn.lunadeer.dominion.events.CallableEvent
cn.lunadeer.dominion.events.ResultEvent
cn.lunadeer.dominion.events.dominion.DominionCreateEvent
- 所有已实现的接口:
org.bukkit.event.Cancellable
Event triggered when a Dominion is created in the Dominion system.
Setting setSkipEconomy(true) can skip the economic system processing.
To modify creation information, set your EventPriority to
EventPriority.LOWEST.
Changes made after this will not take effect.-
嵌套类概要
从类继承的嵌套类/接口 org.bukkit.event.Event
org.bukkit.event.Event.Result -
字段概要
字段 -
构造器概要
构造器构造器说明DominionCreateEvent(@NotNull org.bukkit.command.CommandSender operator, @NotNull String name, @NotNull UUID owner, @NotNull org.bukkit.World world, @NotNull CuboidDTO cuboid, @Nullable DominionDTO parent) Constructs a new DominionCreateEvent. -
方法概要
修饰符和类型方法说明@NotNull CuboidDTOGets the cuboid representing the dominion's boundaries.@Nullable DominionDTOGets the dominion.@NotNull StringgetName()Gets the name of the dominion.@NotNull UUIDgetOwner()Gets the owner of the dominion.@Nullable DominionDTOGets the parent dominion, or null if there is no parent.@NotNull org.bukkit.WorldgetWorld()Gets the world where the dominion is located.booleanGets whether the economic system processing is skipped.voidSets the cuboid representing the dominion's boundaries.voidsetDominion(@NotNull DominionDTO dominion) Sets the dominion.voidSets the name of the dominion.voidSets the owner of the dominion.voidsetParent(@Nullable DominionDTO parent) Sets the parent dominion.voidsetSkipEconomy(boolean skipEconomy) Sets whether to skip the economic system processing.voidsetWorld(@NotNull org.bukkit.World world) Sets the world where the dominion is located.从类继承的方法 cn.lunadeer.dominion.events.ResultEvent
getOperator, isCancelled, setCancelled从类继承的方法 cn.lunadeer.dominion.events.CallableEvent
call, getHandlerList, getHandlers从类继承的方法 org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
字段详细资料
-
world
public org.bukkit.World world
-
-
构造器详细资料
-
DominionCreateEvent
public DominionCreateEvent(@NotNull @NotNull org.bukkit.command.CommandSender operator, @NotNull @NotNull String name, @NotNull @NotNull UUID owner, @NotNull @NotNull org.bukkit.World world, @NotNull @NotNull CuboidDTO cuboid, @Nullable @Nullable DominionDTO parent) Constructs a new DominionCreateEvent.- 参数:
operator- the command sender who initiated the eventname- the name of the dominionowner- the owner of the dominionworld- the world where the dominion is locatedcuboid- the cuboid representing the dominion's boundariesparent- the parent dominion, or null if there is no parent
-
-
方法详细资料
-
setSkipEconomy
public void setSkipEconomy(boolean skipEconomy) Sets whether to skip the economic system processing.Changes made in
EventPriorityHIGH or higherEventHandlerwill not take effect. (Default isEventPriority.NORMAL)- 参数:
skipEconomy- true to skip the economic system processing, false otherwise
-
isSkipEconomy
public boolean isSkipEconomy()Gets whether the economic system processing is skipped.- 返回:
- true if the economic system processing is skipped, false otherwise
-
getName
Gets the name of the dominion.- 返回:
- the name of the dominion
-
setName
Sets the name of the dominion.Changes made in
EventPriorityHIGH or higherEventHandlerwill not take effect. (Default isEventPriority.NORMAL)- 参数:
name- the name of the dominion
-
getCuboid
Gets the cuboid representing the dominion's boundaries.- 返回:
- the cuboid representing the dominion's boundaries
-
setCuboid
Sets the cuboid representing the dominion's boundaries.- 参数:
cuboid- the cuboid representing the dominion's boundaries
-
getWorld
@NotNull public @NotNull org.bukkit.World getWorld()Gets the world where the dominion is located.- 返回:
- the world where the dominion is located
-
setWorld
public void setWorld(@NotNull @NotNull org.bukkit.World world) Sets the world where the dominion is located.- 参数:
world- the world where the dominion is located
-
getParent
Gets the parent dominion, or null if there is no parent.- 返回:
- the parent dominion, or null if there is no parent
-
setParent
Sets the parent dominion.Changes made in
EventPriorityHIGH or higherEventHandlerwill not take effect. (Default isEventPriority.NORMAL)- 参数:
parent- the parent dominion
-
getOwner
Gets the owner of the dominion.- 返回:
- the owner of the dominion
-
setOwner
Sets the owner of the dominion.Changes made in
EventPriorityHIGH or higherEventHandlerwill not take effect. (Default isEventPriority.NORMAL)- 参数:
owner- the owner of the dominion
-
getDominion
Gets the dominion.If retrieved in
EventPriorityLOW, LOWEST, or NORMALEventHandler, it will be null, as the dominion has not been created yet.- 返回:
- the dominion, or null if it has not been created yet
-
setDominion
Sets the dominion.- 参数:
dominion- the dominion to set
-