Fix naming issue

This commit is contained in:
KrystilizeNevaDies 2021-12-23 04:18:52 +10:00 committed by GitHub
parent 1857393e1d
commit 6cc0ade409
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,13 +14,13 @@ import org.jetbrains.annotations.NotNull;
public class PlayerItemAnimationEvent implements PlayerEvent, EntityInstanceEvent, CancellableEvent { public class PlayerItemAnimationEvent implements PlayerEvent, EntityInstanceEvent, CancellableEvent {
private final Player player; private final Player player;
private final ItemAnimationType armAnimationType; private final ItemAnimationType itemAnimationType;
private boolean cancelled; private boolean cancelled;
public PlayerItemAnimationEvent(@NotNull Player player, @NotNull ItemAnimationType armAnimationType) { public PlayerItemAnimationEvent(@NotNull Player player, @NotNull ItemAnimationType itemAnimationType) {
this.player = player; this.player = player;
this.armAnimationType = armAnimationType; this.itemAnimationType = itemAnimationType;
} }
/** /**
@ -28,9 +28,8 @@ public class PlayerItemAnimationEvent implements PlayerEvent, EntityInstanceEven
* *
* @return the animation * @return the animation
*/ */
@NotNull public @NotNull ItemAnimationType getItemAnimationType() {
public ItemAnimationType getArmAnimationType() { return itemAnimationType;
return armAnimationType;
} }
@Override @Override