Files
Bukkit/src/main/java/org/bukkit/event/player/PlayerAnimationEvent.java
2011-02-02 00:28:41 +01:00

36 lines
728 B
Java

package org.bukkit.event.player;
import org.bukkit.entity.Player;
/*
* Represents a player animation event
*/
public class PlayerAnimationEvent extends PlayerEvent {
private PlayerAnimationType animationType;
/*
* Construct a new event
*
* @param type The event type
* @param player The player instance
*/
public PlayerAnimationEvent(final Type type, final Player player) {
super(type, player);
// Only supported animation type for now:
animationType = PlayerAnimationType.ARM_SWING;
}
/*
* Get the type of this animation event
*
* @returns the animation type
*/
public PlayerAnimationType getAnimationType()
{
return animationType;
}
}