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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpawnChangeEvent
public SpawnChangeEvent(World world,
Location previousLocation)
getPreviousLocation
public Location getPreviousLocation()
- Gets the previous spawn location
- Returns:
- Location that used to be spawn
getHandlers
public HandlerList getHandlers()
- Specified by:
getHandlers
in class Event
getHandlerList
public static HandlerList getHandlerList()
Copyright © 2013. All Rights Reserved.