Class ChunkUnclaimEvent

java.lang.Object
org.bukkit.event.Event
me.tayebyassine.homestead.api.events.APIEvent
me.tayebyassine.homestead.api.events.chunk.ChunkUnclaimEvent
All Implemented Interfaces:
org.bukkit.event.Cancellable

public class ChunkUnclaimEvent extends APIEvent implements org.bukkit.event.Cancellable
Fired when chunks are about to be unclaimed. Cancel to prevent unclaiming.
  • Constructor Details

    • ChunkUnclaimEvent

      public ChunkUnclaimEvent(@NotNull @NotNull Region region, @NotNull @NotNull org.bukkit.Chunk chunk)
  • Method Details

    • getChunk

      @NotNull public @NotNull org.bukkit.Chunk getChunk()
    • getRegion

      @NotNull public @NotNull Region getRegion()
    • getHandlerList

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

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

      public boolean isCancelled()
      Specified by:
      isCancelled in interface org.bukkit.event.Cancellable
    • setCancelled

      public void setCancelled(boolean cancel)
      Specified by:
      setCancelled in interface org.bukkit.event.Cancellable