Added Sneaking Event

By: Alexander Hesse <azi@MacBook-Pro.local>
This commit is contained in:
Bukkit/Spigot
2011-01-25 19:04:52 +01:00
parent d245d54634
commit b280199e83
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);
}