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​(@NotNull
                                World world,
                                @NotNull
                                Location previousLocation)
    • Method Detail

      • getPreviousLocation

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

        @NotNull
        public static HandlerList getHandlerList()