Class PlayerAdvancementCriterionGrantEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
org.bukkit.event.player.PlayerAdvancementCriterionGrantEvent
- All Implemented Interfaces:
Cancellable
-
Nested Class Summary
Nested classes/interfaces inherited from class Event
Event.Result -
Field Summary
Fields inherited from class PlayerEvent
player -
Constructor Summary
ConstructorsConstructorDescriptionPlayerAdvancementCriterionGrantEvent(Player who, Advancement advancement, String criterion) -
Method Summary
Modifier and TypeMethodDescriptionGets the affected advancement.Gets the granted criterion.static HandlerListbooleanGets the cancellation state of this event.voidsetCancelled(boolean cancel) Sets the cancellation state of this event.Methods inherited from class PlayerEvent
getPlayerMethods inherited from class Event
getEventName, isAsynchronous
-
Constructor Details
-
PlayerAdvancementCriterionGrantEvent
public PlayerAdvancementCriterionGrantEvent(@NotNull Player who, @NotNull Advancement advancement, @NotNull String criterion)
-
-
Method Details
-
getCriterion
-
getAdvancement
Gets the affected advancement.- Returns:
- affected
Advancement
-
getHandlers
- Specified by:
getHandlersin classEvent
-
getHandlersLists
-
isCancelled
public boolean isCancelled()Description copied from interface:CancellableGets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins- Specified by:
isCancelledin interfaceCancellable- Returns:
- true if this event is cancelled
-
setCancelled
public void setCancelled(boolean cancel) Description copied from interface:CancellableSets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins.- Specified by:
setCancelledin interfaceCancellable- Parameters:
cancel- true if you wish to cancel this event
-