use of mcjty.lib.network.Argument in project RFTools by McJty.
the class GuiSequencer method changeMode.
private void changeMode() {
SequencerMode newMode = SequencerMode.getMode(mode.getCurrentChoice());
tileEntity.setMode(newMode);
sendServerCommand(RFToolsMessages.INSTANCE, SequencerTileEntity.CMD_MODE, new Argument("mode", newMode.getDescription()));
}
use of mcjty.lib.network.Argument in project RFTools by McJty.
the class GuiSequencer method setDelay.
private void setDelay() {
String d = speedField.getText();
int delay;
try {
delay = Integer.parseInt(d);
} catch (NumberFormatException e) {
delay = 1;
}
tileEntity.setDelay(delay);
sendServerCommand(RFToolsMessages.INSTANCE, SequencerTileEntity.CMD_SETDELAY, new Argument("delay", delay));
}
use of mcjty.lib.network.Argument in project RFTools by McJty.
the class GuiSequencer method setCount.
private void setCount() {
String c = countField.getText();
int count;
try {
count = Integer.parseInt(c);
} catch (NumberFormatException e) {
count = 64;
}
tileEntity.setStepCount(count);
sendServerCommand(RFToolsMessages.INSTANCE, SequencerTileEntity.CMD_SETCOUNT, new Argument("count", count));
}
use of mcjty.lib.network.Argument in project RFTools by McJty.
the class GuiInvChecker method setOredictUsage.
private void setOredictUsage() {
boolean b = OREDICT_USE.equals(oreDictLabel.getCurrentChoice());
tileEntity.setOreDict(b);
sendServerCommand(RFToolsMessages.INSTANCE, InvCheckerTileEntity.CMD_SETOREDICT, new Argument("b", b));
}
use of mcjty.lib.network.Argument in project RFTools by McJty.
the class GuiInvChecker method setSlot.
private void setSlot() {
String d = slotField.getText();
int slot;
try {
slot = Integer.parseInt(d);
} catch (NumberFormatException e) {
slot = 0;
}
tileEntity.setSlot(slot);
sendServerCommand(RFToolsMessages.INSTANCE, InvCheckerTileEntity.CMD_SETSLOT, new Argument("slot", slot));
}
Aggregations