Added Sneaking Event

This commit is contained in:
Alexander Hesse
2011-01-25 19:04:52 +01:00
committed by Erik Broes
parent e95f99802d
commit 1204340b96
5 changed files with 74 additions and 4 deletions

View File

@@ -64,4 +64,16 @@ public interface Player extends HumanEntity, CommandSender {
* @return true if the command was successful, otherwise false
*/
public boolean performCommand(String command);
/**
* Returns if the player is in sneak mode
* @return true if player is in sneak mode
*/
public boolean isSneaking();
/**
* Sets the sneak mode the player
* @param sneak true if player should appear sneaking
*/
public void setSneaking(boolean sneak);
}