Code cleanup

This commit is contained in:
LemADEC 2015-11-14 14:17:50 +01:00
parent a72bed152c
commit e458832557

View file

@ -32,26 +32,28 @@ public class TileEntityMiningLaser extends TileEntityAbstractLaser {
private boolean isMining() { private boolean isMining() {
return currentState != STATE_IDLE; return currentState != STATE_IDLE;
} }
private boolean isQuarry = false; private boolean isQuarry = false;
private boolean enableSilktouch = false; private boolean enableSilktouch = false;
private int delayTicksWarmup = 0; private int delayTicksWarmup = 0;
private int delayTicksScan = 0; private int delayTicksScan = 0;
private int delayTicksMine = 0; private int delayTicksMine = 0;
private final int STATE_IDLE = 0; private final int STATE_IDLE = 0;
private final int STATE_WARMUP = 1; private final int STATE_WARMUP = 1;
private final int STATE_SCANNING = 2; private final int STATE_SCANNING = 2;
private final int STATE_MINING = 3; private final int STATE_MINING = 3;
private int currentState = 0; // 0 - scan next layer, 1 - collect valuables private int currentState = 0;
private boolean enoughPower = false; private boolean enoughPower = false;
private int currentLayer; private int currentLayer;
private ArrayList<VectorI> valuablesInLayer = new ArrayList<VectorI>(); private ArrayList<VectorI> valuablesInLayer = new ArrayList<VectorI>();
private int valuableIndex = 0; private int valuableIndex = 0;
private int layerOffset = 1; private int layerOffset = 1;
public TileEntityMiningLaser() { public TileEntityMiningLaser() {
super(); super();
peripheralName = "warpdriveMiningLaser"; peripheralName = "warpdriveMiningLaser";