General cleanup (deprecated+whitespace)
By: Erik Broes <erikbroes@grum.nl>
This commit is contained in:
@@ -6,30 +6,30 @@ 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;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ public class PlayerEggThrowEvent extends PlayerEvent {
|
||||
|
||||
/**
|
||||
* Get the egg.
|
||||
*
|
||||
*
|
||||
* @return the egg
|
||||
*/
|
||||
public Egg getEgg() {
|
||||
|
||||
@@ -57,10 +57,10 @@ public class PlayerListener implements Listener {
|
||||
*/
|
||||
public void onPlayerTeleport(PlayerMoveEvent event) {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Called when a player uses an item
|
||||
*
|
||||
*
|
||||
* @param event Relevant event details
|
||||
*/
|
||||
public void onPlayerItem(PlayerItemEvent event) {
|
||||
@@ -81,10 +81,10 @@ public class PlayerListener implements Listener {
|
||||
*/
|
||||
public void onPlayerEggThrow(PlayerEggThrowEvent event) {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Called when a player plays an animation, such as an arm swing
|
||||
*
|
||||
*
|
||||
* @param event Relevant event details
|
||||
*/
|
||||
public void onPlayerAnimation(PlayerAnimationEvent event) {
|
||||
|
||||
Reference in New Issue
Block a user