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 HandlerListgetHandlerList()HandlerListgetHandlers()LocationgetPreviousLocation()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:
getHandlersin classEvent
-
getHandlerList
-