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(@NotNull World world, @NotNull Location previousLocation)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static @NotNull HandlerList
getHandlerList()
@NotNull HandlerList
getHandlers()
@NotNull 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 @NotNull Location getPreviousLocation()
Gets the previous spawn location- Returns:
- Location that used to be spawn
-
getHandlers
@NotNull public @NotNull HandlerList getHandlers()
- Specified by:
getHandlers
in classEvent
-
getHandlerList
@NotNull public static @NotNull HandlerList getHandlerList()
-
-