SPIGOT-7003: Add missing PlayerAnimationType

By: Doc <nachito94@msn.com>
This commit is contained in:
Bukkit/Spigot 2022-06-09 21:30:20 +10:00
parent 276f86cc29
commit 4834aca6ed
2 changed files with 5 additions and 5 deletions

View file

@ -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;
}
/**

View file

@ -4,5 +4,6 @@ package org.bukkit.event.player;
* Different types of player animations
*/
public enum PlayerAnimationType {
ARM_SWING
ARM_SWING,
OFF_ARM_SWING
}