Package net.minestom.server.event.player
Class PlayerItemAnimationEvent
java.lang.Object
net.minestom.server.event.Event
net.minestom.server.event.CancellableEvent
net.minestom.server.event.player.PlayerItemAnimationEvent
public class PlayerItemAnimationEvent extends CancellableEvent
Used when a
Player
finish the animation of an item.-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PlayerItemAnimationEvent.ItemAnimationType
-
Constructor Summary
Constructors Constructor Description PlayerItemAnimationEvent(Player player, PlayerItemAnimationEvent.ItemAnimationType armAnimationType)
-
Method Summary
Modifier and Type Method Description PlayerItemAnimationEvent.ItemAnimationType
getArmAnimationType()
Gets the animation.Player
getPlayer()
Gets thePlayer
who is responsible for the animation.
-
Constructor Details
-
PlayerItemAnimationEvent
public PlayerItemAnimationEvent(@NotNull Player player, @NotNull PlayerItemAnimationEvent.ItemAnimationType armAnimationType)
-
-
Method Details
-
getPlayer
Gets thePlayer
who is responsible for the animation.- Returns:
- the player
-
getArmAnimationType
Gets the animation.- Returns:
- the animation
-