mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-13 11:18:23 +01:00
SPIGOT-7003: Add missing PlayerAnimationType
By: Doc <nachito94@msn.com>
This commit is contained in:
parent
276f86cc29
commit
4834aca6ed
2 changed files with 5 additions and 5 deletions
|
@ -17,12 +17,11 @@ public class PlayerAnimationEvent extends PlayerEvent implements Cancellable {
|
|||
* Construct a new PlayerAnimation event
|
||||
*
|
||||
* @param player The player instance
|
||||
* @param playerAnimationType The animation type
|
||||
*/
|
||||
public PlayerAnimationEvent(@NotNull final Player player) {
|
||||
public PlayerAnimationEvent(@NotNull final Player player, @NotNull final PlayerAnimationType playerAnimationType) {
|
||||
super(player);
|
||||
|
||||
// Only supported animation type for now:
|
||||
animationType = PlayerAnimationType.ARM_SWING;
|
||||
animationType = playerAnimationType;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -4,5 +4,6 @@ package org.bukkit.event.player;
|
|||
* Different types of player animations
|
||||
*/
|
||||
public enum PlayerAnimationType {
|
||||
ARM_SWING
|
||||
ARM_SWING,
|
||||
OFF_ARM_SWING
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue