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

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

    • 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 class Event
    • getHandlerList

      @NotNull public static @NotNull HandlerList getHandlerList()