Class ClaimWhitelistChangeEvent

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

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

    • ClaimWhitelistChangeEvent

      public ClaimWhitelistChangeEvent(@NotNull @NotNull Claim claim, @NotNull @NotNull org.bukkit.OfflinePlayer whitelistedPlayer, @NotNull @NotNull org.bukkit.command.CommandSender actor, @NotNull @NotNull ClaimWhitelistChangeEvent.ChangeAction action)
  • Method Details

    • getAction

      @NotNull public @NotNull ClaimWhitelistChangeEvent.ChangeAction getAction()
    • getActor

      @NotNull public @NotNull org.bukkit.command.CommandSender getActor()
    • getWhitelistedPlayer

      @NotNull public @NotNull org.bukkit.OfflinePlayer getWhitelistedPlayer()
    • getClaim

      @NotNull public @NotNull Claim getClaim()
    • getTimestamp

      public long getTimestamp()
    • isAddedAction

      public boolean isAddedAction()
    • isRemovedAction

      public boolean isRemovedAction()
    • 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