mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-04 10:11:29 +01:00
Add compat constructor to PlayerAnimationEvent
By: md_5 <git@md-5.net>
This commit is contained in:
parent
8bbd39c170
commit
5148d2950b
1 changed files with 5 additions and 0 deletions
|
@ -13,6 +13,11 @@ public class PlayerAnimationEvent extends PlayerEvent implements Cancellable {
|
||||||
private final PlayerAnimationType animationType;
|
private final PlayerAnimationType animationType;
|
||||||
private boolean isCancelled = false;
|
private boolean isCancelled = false;
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
|
public PlayerAnimationEvent(@NotNull final Player player) {
|
||||||
|
this(player, PlayerAnimationType.ARM_SWING);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Construct a new PlayerAnimation event
|
* Construct a new PlayerAnimation event
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue