Class ClaimProtectionChangeEvent

java.lang.Object
org.bukkit.event.Event
net.mathias2246.buildmc.api.event.CustomEvent
net.mathias2246.buildmc.api.event.claims.ClaimProtectionChangeEvent
All Implemented Interfaces:
org.bukkit.event.Cancellable

public class ClaimProtectionChangeEvent extends CustomEvent implements org.bukkit.event.Cancellable
  • Constructor Details

  • Method Details

    • getClaim

      @NotNull public @NotNull Claim getClaim()
    • getProtection

      @NotNull public @NotNull Protection getProtection()
    • getNewState

      @NotNull public @NotNull ClaimProtectionChangeEvent.ActiveState getNewState()
    • getTimestamp

      public long getTimestamp()
    • isEnabled

      public boolean isEnabled()
    • isDisabled

      public boolean isDisabled()
    • isCancelled

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

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

      @NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()
      Description copied from class: CustomEvent
      Returns the HandlerList for this event type.

      Bukkit requires each concrete event class to define its own static HandlerList instance and to return it from this method. This is necessary for Bukkit’s event registration and dispatch system.

      Specified by:
      getHandlers in class CustomEvent
      Returns:
      the handler list for this event (never null)
    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()
      Gets the static list of handlers for this event type.

      Required by the Bukkit event system for registration.

      Returns:
      the handler list