类 DominionTransferEvent
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.DominionTransferEvent
- 所有已实现的接口:
org.bukkit.event.Cancellable
Event triggered when a Dominion is transferred to a new owner in the Dominion system.
-
嵌套类概要
从类继承的嵌套类/接口 org.bukkit.event.Event
org.bukkit.event.Event.Result -
构造器概要
构造器构造器说明DominionTransferEvent(@NotNull org.bukkit.command.CommandSender operator, @NotNull DominionDTO dominion, @NotNull PlayerDTO newOwner) Constructs a new DominionTransferEvent. -
方法概要
修饰符和类型方法说明@NotNull PlayerDTOGets the new owner of the dominion.@NotNull PlayerDTOGets the old owner of the dominion.booleanisForce()Checks if the transfer is forced.voidsetForce(boolean force) Sets whether the transfer is forced.voidsetNewOwner(PlayerDTO newOwner) Sets the new owner of the dominion.从类继承的方法 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
-
构造器详细资料
-
DominionTransferEvent
public DominionTransferEvent(@NotNull @NotNull org.bukkit.command.CommandSender operator, @NotNull @NotNull DominionDTO dominion, @NotNull @NotNull PlayerDTO newOwner) Constructs a new DominionTransferEvent.- 参数:
operator- the command sender who initiated the eventdominion- the dominion being transferrednewOwner- the new owner of the dominion
-
-
方法详细资料
-
isForce
public boolean isForce()Checks if the transfer is forced.- 返回:
- true if the transfer is forced, false otherwise
-
setForce
public void setForce(boolean force) Sets whether the transfer is forced.- 参数:
force- true to force the transfer, false otherwise
-
getNewOwner
Gets the new owner of the dominion.- 返回:
- the new owner
-
getOldOwner
Gets the old owner of the dominion.- 返回:
- the old owner
-
setNewOwner
Sets the new owner of the dominion.Changes made in
EventPriorityHIGH or higherEventHandlerwill not take effect. (Default isEventPriority.NORMAL)- 参数:
newOwner- the new owner to set
-