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
-
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
-
Constructor Summary
Constructors Constructor Description SpawnChangeEvent(World world, Location previousLocation)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HandlerList
getHandlerList()
HandlerList
getHandlers()
Location
getPreviousLocation()
Gets the previous spawn location-
Methods inherited from class org.bukkit.event.world.WorldEvent
getWorld
-
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
-
-
-
Method Detail
-
getPreviousLocation
@NotNull public Location getPreviousLocation()
Gets the previous spawn location- Returns:
- Location that used to be spawn
-
getHandlers
@NotNull public HandlerList getHandlers()
- Specified by:
getHandlers
in classEvent
-
getHandlerList
@NotNull public static HandlerList getHandlerList()
-
-