diff --git a/src/main/java/net/minestom/server/event/player/PlayerItemAnimationEvent.java b/src/main/java/net/minestom/server/event/player/PlayerItemAnimationEvent.java index a9628df27..e47882e5e 100644 --- a/src/main/java/net/minestom/server/event/player/PlayerItemAnimationEvent.java +++ b/src/main/java/net/minestom/server/event/player/PlayerItemAnimationEvent.java @@ -14,13 +14,13 @@ import org.jetbrains.annotations.NotNull; public class PlayerItemAnimationEvent implements PlayerEvent, EntityInstanceEvent, CancellableEvent { private final Player player; - private final ItemAnimationType armAnimationType; + private final ItemAnimationType itemAnimationType; private boolean cancelled; - public PlayerItemAnimationEvent(@NotNull Player player, @NotNull ItemAnimationType armAnimationType) { + public PlayerItemAnimationEvent(@NotNull Player player, @NotNull ItemAnimationType itemAnimationType) { this.player = player; - this.armAnimationType = armAnimationType; + this.itemAnimationType = itemAnimationType; } /** @@ -28,9 +28,8 @@ public class PlayerItemAnimationEvent implements PlayerEvent, EntityInstanceEven * * @return the animation */ - @NotNull - public ItemAnimationType getArmAnimationType() { - return armAnimationType; + public @NotNull ItemAnimationType getItemAnimationType() { + return itemAnimationType; } @Override