Class 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.
    • 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
      • getHandlerList

        public static HandlerList getHandlerList()