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 {
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