Changed arm swing event to use arm swing; now compass right click toggles the compass mode between /jumpto and /thru.

This commit is contained in:
sk89q
2011-01-26 10:52:53 -08:00
parent c49631de1e
commit fdb7c31aae
4 changed files with 85 additions and 8 deletions

View File

@@ -32,6 +32,11 @@ import com.sk89q.worldedit.regions.CuboidRegion;
* @author sk89q
*/
public class LocalSession {
public enum CompassMode {
JUMPTO,
THRU
}
public static final int MAX_HISTORY_SIZE = 15;
private boolean placeAtPos1 = false;
@@ -49,6 +54,7 @@ public class LocalSession {
private boolean useInventory;
private Snapshot snapshot;
private String lastScript;
private CompassMode compassMode = CompassMode.JUMPTO;
/**
* Clear history.
@@ -427,4 +433,18 @@ public class LocalSession {
public void setLastScript(String lastScript) {
this.lastScript = lastScript;
}
/**
* @return the compassMode
*/
public CompassMode getCompassMode() {
return compassMode;
}
/**
* @param compassMode the compassMode to set
*/
public void setCompassMode(CompassMode compassMode) {
this.compassMode = compassMode;
}
}