Class RegionLocationUpdateEvent

java.lang.Object
org.bukkit.event.Event
me.tayebyassine.homestead.api.events.APIEvent
me.tayebyassine.homestead.api.events.region.RegionLocationUpdateEvent

public class RegionLocationUpdateEvent extends APIEvent
Fired when a region's spawn location is changed. Contains the old and new locations.
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.bukkit.event.Event

    org.bukkit.event.Event.Result
  • Constructor Summary

    Constructors
    Constructor
    Description
    RegionLocationUpdateEvent(@NotNull Region region, @Nullable org.bukkit.Location oldLocation, @Nullable org.bukkit.Location newLocation)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.bukkit.event.HandlerList
     
    org.bukkit.event.HandlerList
     
    @Nullable org.bukkit.Location
     
    @Nullable org.bukkit.Location
     
    @NotNull Region
     

    Methods inherited from class org.bukkit.event.Event

    callEvent, getEventName, isAsynchronous

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RegionLocationUpdateEvent

      public RegionLocationUpdateEvent(@NotNull @NotNull Region region, @Nullable @Nullable org.bukkit.Location oldLocation, @Nullable @Nullable org.bukkit.Location newLocation)
  • Method Details

    • getRegion

      @NotNull public @NotNull Region getRegion()
    • getOldLocation

      @Nullable public @Nullable org.bukkit.Location getOldLocation()
    • getNewLocation

      @Nullable public @Nullable org.bukkit.Location getNewLocation()
    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()
    • getHandlers

      public org.bukkit.event.HandlerList getHandlers()
      Overrides:
      getHandlers in class APIEvent