Added super pick axe and /..

This commit is contained in:
sk89q
2010-10-13 11:26:07 -07:00
parent 598f4aa6cd
commit 23b24b3615
4 changed files with 83 additions and 17 deletions

View File

@ -98,6 +98,17 @@ public class WorldEditPlayer {
return player.getItemInHand();
}
/**
* Returns true if the player is holding a pick axe.
*
* @return whether a pick axe is held
*/
public boolean isHoldingPickAxe() {
int item = getItemInHand();
return item == 271 || item == 270 || item == 274 || item == 278
|| item == 285;
}
/**
* Get the player's cardinal direction (N, W, NW, etc.).
*