General cleanup (deprecated+whitespace)

By: Erik Broes <erikbroes@grum.nl>
This commit is contained in:
Bukkit/Spigot
2011-02-02 00:02:08 +01:00
parent b01fc3ffa8
commit 474817bf11
27 changed files with 224 additions and 244 deletions

View File

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

View File

@@ -26,7 +26,7 @@ public class PlayerEggThrowEvent extends PlayerEvent {
/**
* Get the egg.
*
*
* @return the egg
*/
public Egg getEgg() {

View File

@@ -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) {