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 Details

    • SpawnChangeEvent

      public SpawnChangeEvent(@NotNull World world, @NotNull Location previousLocation)
  • Method Details

    • getPreviousLocation

      @NotNull public Location getPreviousLocation()
      Gets the previous spawn location
      Location that used to be spawn
    • getHandlers

      @NotNull public HandlerList getHandlers()
      Specified by:
      getHandlers in class Event
    • getHandlerList

      @NotNull public static HandlerList getHandlerList()