类 DominionSetTpLocationEvent
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.DominionSetTpLocationEvent
- 所有已实现的接口:
org.bukkit.event.Cancellable
Event triggered when a teleport location is set for a Dominion in the Dominion system.
-
嵌套类概要
从类继承的嵌套类/接口 org.bukkit.event.Event
org.bukkit.event.Event.Result -
构造器概要
构造器构造器说明DominionSetTpLocationEvent(@NotNull org.bukkit.command.CommandSender operator, @NotNull DominionDTO dominion, @NotNull org.bukkit.Location newTpLocation) Constructs a new DominionSetTpLocationEvent. -
方法概要
修饰符和类型方法说明@NotNull org.bukkit.LocationGets the new teleport location.@NotNull org.bukkit.LocationGets the old teleport location.voidsetNewTpLocation(@NotNull org.bukkit.Location newTpLocation) Sets the new teleport location.从类继承的方法 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
-
构造器详细资料
-
DominionSetTpLocationEvent
public DominionSetTpLocationEvent(@NotNull @NotNull org.bukkit.command.CommandSender operator, @NotNull @NotNull DominionDTO dominion, @NotNull @NotNull org.bukkit.Location newTpLocation) Constructs a new DominionSetTpLocationEvent.- 参数:
operator- the command sender who initiated the eventdominion- the dominion for which the teleport location is being setnewTpLocation- the new teleport location
-
-
方法详细资料
-
getOldTpLocation
@NotNull public @NotNull org.bukkit.Location getOldTpLocation()Gets the old teleport location.- 返回:
- the old teleport location, or null if it was not set
-
getNewTpLocation
@NotNull public @NotNull org.bukkit.Location getNewTpLocation()Gets the new teleport location.- 返回:
- the new teleport location
-
setNewTpLocation
public void setNewTpLocation(@NotNull @NotNull org.bukkit.Location newTpLocation) Sets the new teleport location.- 参数:
newTpLocation- the new teleport location to set
-