|
|
@ -46,14 +46,16 @@ public class ChipTileEntity extends AbstractWireTileEntity {
|
|
|
|
|
|
|
|
|
|
|
|
public void setMode(String string) {
|
|
|
|
public void setMode(String string) {
|
|
|
|
if (mode.equals("none")) {
|
|
|
|
if (mode.equals("none")) {
|
|
|
|
if (string.equals("constant")) {
|
|
|
|
switch(string) {
|
|
|
|
|
|
|
|
case "constant":
|
|
|
|
mode = string;
|
|
|
|
mode = string;
|
|
|
|
this.inputs = new WiringButton[0];
|
|
|
|
this.inputs = new WiringButton[0];
|
|
|
|
this.outputs = new WiringButton[1];
|
|
|
|
this.outputs = new WiringButton[1];
|
|
|
|
this.outputs[0] = new WiringButton(214, 240, "Output", 0);
|
|
|
|
this.outputs[0] = new WiringButton(214, 240, "Output", 0);
|
|
|
|
initialized = true;
|
|
|
|
initialized = true;
|
|
|
|
hasSettings = true;
|
|
|
|
hasSettings = true;
|
|
|
|
} else if (string.equals("count")) {
|
|
|
|
break;
|
|
|
|
|
|
|
|
case "count":
|
|
|
|
mode = string;
|
|
|
|
mode = string;
|
|
|
|
this.inputs = new WiringButton[3];
|
|
|
|
this.inputs = new WiringButton[3];
|
|
|
|
this.outputs = new WiringButton[1];
|
|
|
|
this.outputs = new WiringButton[1];
|
|
|
@ -62,6 +64,7 @@ public class ChipTileEntity extends AbstractWireTileEntity {
|
|
|
|
this.inputs[1] = new WiringButton(214, 200, "Clock", 1);
|
|
|
|
this.inputs[1] = new WiringButton(214, 200, "Clock", 1);
|
|
|
|
this.inputs[2] = new WiringButton(214, 180, "Reset", 2);
|
|
|
|
this.inputs[2] = new WiringButton(214, 180, "Reset", 2);
|
|
|
|
initialized = true;
|
|
|
|
initialized = true;
|
|
|
|
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|