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

@@ -32,6 +32,7 @@ public class WorldEditSession {
private int historyPointer = 0;
private CuboidClipboard clipboard;
private boolean toolControl = true;
private boolean superPickAxe = false;
private int maxBlocksChanged = -1;
/**
@@ -242,4 +243,41 @@ public class WorldEditSession {
public void setBlockChangeLimit(int maxBlocksChanged) {
this.maxBlocksChanged = maxBlocksChanged;
}
/**
* Checks whether the super pick axe is enabled.
*
* @return status
*/
public boolean hasSuperPickAxe() {
return superPickAxe;
}
/**
* Enable super pick axe.
*
* @param superPickAxe
*/
public void enableSuperPickAxe() {
superPickAxe = true;
}
/**
* Disable super pick axe.
*
* @param superPickAxe
*/
public void disableSuperPickAxe() {
superPickAxe = false;
}
/**
* Toggle the super pick axe.
*
* @return status
*/
public boolean toggleSuperPickAxe() {
superPickAxe = !superPickAxe;
return superPickAxe;
}
}