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
-
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
ConstructorsConstructorDescriptionClaimWhitelistChangeEvent(@NotNull Claim claim, @NotNull org.bukkit.OfflinePlayer whitelistedPlayer, @NotNull org.bukkit.command.CommandSender actor, @NotNull ClaimWhitelistChangeEvent.ChangeAction action) -
Method Summary
Modifier and TypeMethodDescription@NotNull org.bukkit.command.CommandSendergetActor()@NotNull ClaimgetClaim()static org.bukkit.event.HandlerListGets the static list of handlers for this event type.@NotNull org.bukkit.event.HandlerListReturns theHandlerListfor this event type.long@NotNull org.bukkit.OfflinePlayerbooleanbooleanbooleanvoidsetCancelled(boolean b) Methods inherited from class net.mathias2246.buildmc.api.event.CustomEvent
getMetadata, putMetadata, removeMetadataMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
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
-
getActor
@NotNull public @NotNull org.bukkit.command.CommandSender getActor() -
getWhitelistedPlayer
@NotNull public @NotNull org.bukkit.OfflinePlayer getWhitelistedPlayer() -
getClaim
-
getTimestamp
public long getTimestamp() -
isAddedAction
public boolean isAddedAction() -
isRemovedAction
public boolean isRemovedAction() -
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean b) - Specified by:
setCancelledin interfaceorg.bukkit.event.Cancellable
-
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
-