Package org.bukkit.event.world
Class SpawnChangeEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.world.WorldEvent
org.bukkit.event.world.SpawnChangeEvent
public class SpawnChangeEvent extends WorldEvent
An event that is called when a world's spawn changes. The world's previous
spawn location is included.
-
Nested Class Summary
-
Constructor Summary
Constructors Constructor Description SpawnChangeEvent(World world, Location previousLocation)
-
Method Summary
Modifier and Type Method Description static HandlerList
getHandlerList()
HandlerList
getHandlers()
Location
getPreviousLocation()
Gets the previous spawn location
-
Constructor Details
-
Method Details
-
getPreviousLocation
Gets the previous spawn location- Returns:
- Location that used to be spawn
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
getHandlerList
-