Class ClaimChangeEvent
java.lang.Object
org.bukkit.event.Event
net.mathias2246.buildmc.api.event.CustomEvent
net.mathias2246.buildmc.api.event.claims.ClaimChangeEvent
Called when a claim setting was changed.
This event is fired synchronously on the main server thread.
Plugins can attach optional metadata to this event via
CustomEvent.putMetadata(String, Object).-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Field Summary
Fields inherited from class net.mathias2246.buildmc.api.event.CustomEvent
metadataHolder -
Constructor Summary
ConstructorsConstructorDescriptionClaimChangeEvent(@NotNull Claim claim, @NotNull ClaimChangeEvent.ClaimSetting setting) Constructs a newClaimChangeEvent. -
Method Summary
Modifier and TypeMethodDescription@NotNull ClaimgetClaim()Gets the claim that was changed.static org.bukkit.event.HandlerListGets the static list of handlers for this event type.@NotNull org.bukkit.event.HandlerListReturns theHandlerListfor this event type.@NotNull ClaimChangeEvent.ClaimSettingMethods inherited from class net.mathias2246.buildmc.api.event.CustomEvent
getMetadata, putMetadata, removeMetadataMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
ClaimChangeEvent
public ClaimChangeEvent(@NotNull @NotNull Claim claim, @NotNull @NotNull ClaimChangeEvent.ClaimSetting setting) Constructs a newClaimChangeEvent.- Parameters:
claim- the claim that was changedsetting- what setting was changed
-
-
Method Details
-
getClaim
Gets the claim that was changed.- Returns:
- The claim that was changed
-
getSetting
-
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
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
-