Class ClaimRemoveEvent
java.lang.Object
org.bukkit.event.Event
net.mathias2246.buildmc.api.event.CustomEvent
net.mathias2246.buildmc.api.event.claims.ClaimRemoveEvent
Called when one or more claims were removed.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Field Summary
Fields inherited from class CustomEvent
metadataHolder -
Constructor Summary
ConstructorsConstructorDescriptionClaimRemoveEvent(@NotNull List<@NotNull Claim> claims) Constructs a newClaimRemoveEventfor multiple claims.ClaimRemoveEvent(@NotNull Claim claim) Constructs a newClaimRemoveEventfor a single claim. -
Method Summary
Modifier and TypeMethodDescription@NotNull ClaimgetClaim()Convenience method for single-claim operations.@NotNull com.google.common.collect.ImmutableList<@NotNull Claim> Gets an immutable list of claims that were removed.static @NotNull org.bukkit.event.HandlerListRequired by the Bukkit event system for registration.@NotNull org.bukkit.event.HandlerListReturns theHandlerListfor this event type.Methods inherited from class CustomEvent
getMetadata, putMetadata, removeMetadataMethods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
ClaimRemoveEvent
Constructs a newClaimRemoveEventfor multiple claims.- Parameters:
claims- the claims that were removed
-
ClaimRemoveEvent
Constructs a newClaimRemoveEventfor a single claim.- Parameters:
claim- the claim that was removed
-
-
Method Details
-
getClaims
Gets an immutable list of claims that were removed.- Returns:
- all claims included in this removal operation
-
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:CustomEventReturns theHandlerListfor this event type.Bukkit requires each concrete event class to define its own static
HandlerListinstance and to return it from this method. This is necessary for Bukkitâs event registration and dispatch system.- Specified by:
getHandlersin classCustomEvent- 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
-