org.bukkit.event.world
Class SpawnChangeEvent

java.lang.Object
  extended by org.bukkit.event.Event
      extended by org.bukkit.event.world.WorldEvent
          extended by 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
SpawnChangeEvent(World world, Location previousLocation)
           
 
Method Summary
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpawnChangeEvent

public SpawnChangeEvent(World world,
                        Location previousLocation)
Method Detail

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.