1
0
Fork 0
mirror of https://github.com/PaperMC/Paper.git synced 2025-03-13 19:28:03 +01:00

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
paper-api/src/main/java/org/bukkit/event/player

View file

@ -17,12 +17,11 @@ public class PlayerAnimationEvent extends PlayerEvent implements Cancellable {
* Construct a new PlayerAnimation event * Construct a new PlayerAnimation event
* *
* @param player The player instance * @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); super(player);
animationType = playerAnimationType;
// Only supported animation type for now:
animationType = PlayerAnimationType.ARM_SWING;
} }
/** /**

View file

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