Class PlayerAnimationEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
org.bukkit.event.player.PlayerAnimationEvent
- All Implemented Interfaces:
Cancellable
- Direct Known Subclasses:
PlayerArmSwingEvent
@Deprecated(since="26.3")
public class PlayerAnimationEvent
extends PlayerEvent
implements Cancellable
Deprecated.
Represents a player animation event
-
Nested Class Summary
Nested classes/interfaces inherited from class Event
Event.Result -
Field Summary
Fields inherited from class PlayerEvent
player -
Constructor Summary
ConstructorsConstructorDescriptionPlayerAnimationEvent(@NotNull Player player) Deprecated, for removal: This API element is subject to removal in a future version.PlayerAnimationEvent(@NotNull Player player, @NotNull PlayerAnimationType playerAnimationType) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Get the type of this animation eventstatic @NotNull HandlerListDeprecated.Deprecated.booleanDeprecated.Gets the cancellation state of this event.voidsetCancelled(boolean cancel) Deprecated.Sets the cancellation state of this event.Methods inherited from class PlayerEvent
getPlayerMethods inherited from class Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
PlayerAnimationEvent
@Internal @Deprecated(since="1.19", forRemoval=true) public PlayerAnimationEvent(@NotNull @NotNull Player player) Deprecated, for removal: This API element is subject to removal in a future version. -
PlayerAnimationEvent
-
-
Method Details
-
getAnimationType
Deprecated.Get the type of this animation event- Returns:
- the animation type
-
isCancelled
public boolean isCancelled()Deprecated.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:
trueif this event is cancelled
-
setCancelled
public void setCancelled(boolean cancel) Deprecated.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-trueif you wish to cancel this event
-
getHandlers
Deprecated.- Specified by:
getHandlersin classEvent
-
getHandlerList
Deprecated.
-
PlayerArmSwingEvent