SpawnChangeEvent
SpawnChangeEvent
=> org.bukkit.event.Event
=> org.bukkit.event.world.WorldEvent
=> org.bukkit.event.world.SpawnChangeEvent
An event that is called when a world's spawn changes. The world's previousspawn location is included.当世界出生点被更改时触发。世界原出生点位置被囊括于本事件的字段中。译注:所谓“囊括”,指本事件记录了原出生点位置,用户可以调用getPreviousLocation()
方法获取。
方法声明: public Location getPreviousLocation()
方法签名: ()Lorg/bukkit/Location;
Gets the previous spawn location@return Location that used to be spawn该方法用于获取世界原出生点的位置。@return 世界原出生点的位置。
方法声明: public HandlerList getHandlers()
方法签名: ()Lorg/bukkit/event/HandlerList;
方法声明: public static HandlerList getHandlerList()
方法签名: ()Lorg/bukkit/event/HandlerList;
Last modified 1mo ago