Class SpawnChangeEvent
java.lang.Object
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 previous
spawn location is included.
- Since:
- 1.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from class Event
Event.Result -
Field Summary
Fields inherited from class WorldEvent
world -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull HandlerList@NotNull HandlerList@NotNull LocationGets the previous spawn locationMethods inherited from class WorldEvent
getWorldMethods inherited from class Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
SpawnChangeEvent
-
-
Method Details
-
getPreviousLocation
Gets the previous spawn location- Returns:
- Location that used to be spawn
- Since:
- 1.0.0
-
getHandlers
- Specified by:
getHandlersin classEvent- Since:
- 1.1.0
-
getHandlerList
- Since:
- 1.1.0
-