mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-11 02:02:04 -07:00
SPIGOT-7003: Add missing PlayerAnimationType
By: Doc <nachito94@msn.com>
This commit is contained in:
@@ -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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -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
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user