Class ClaimRemoveEvent

java.lang.Object
org.bukkit.event.Event
net.mathias2246.buildmc.api.event.CustomEvent
net.mathias2246.buildmc.api.event.claims.ClaimRemoveEvent

public class ClaimRemoveEvent extends CustomEvent
Called when one or more claims were removed.
  • Constructor Details

    • ClaimRemoveEvent

      public ClaimRemoveEvent(@NotNull @NotNull List<@NotNull Claim> claims)
      Constructs a new ClaimRemoveEvent for multiple claims.
      Parameters:
      claims - the claims that were removed
    • ClaimRemoveEvent

      public ClaimRemoveEvent(@NotNull @NotNull Claim claim)
      Constructs a new ClaimRemoveEvent for a single claim.
      Parameters:
      claim - the claim that was removed
  • Method Details

    • getClaims

      @NotNull public @NotNull com.google.common.collect.ImmutableList<@NotNull Claim> getClaims()
      Gets an immutable list of claims that were removed.
      Returns:
      all claims included in this removal operation
    • getClaim

      @NotNull public @NotNull Claim getClaim()
      Convenience method for single-claim operations.

      If multiple claims are present, this returns the first one. Plugins that care about bulk operations (BulkMC-Core xD) should use getClaims().

      Returns:
      the first claim in the list
    • 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

      @NotNull public static @NotNull org.bukkit.event.HandlerList getHandlerList()
      Required by the Bukkit event system for registration.
      Returns:
      the static handler list