use of mcjty.lib.network.Argument in project RFTools by McJty.
the class GuiCoalGenerator method changeRedstoneMode.
private void changeRedstoneMode() {
tileEntity.setRSMode(RedstoneMode.values()[redstoneMode.getCurrentChoiceIndex()]);
sendServerCommand(RFToolsMessages.INSTANCE, CoalGeneratorTileEntity.CMD_RSMODE, new Argument("rs", RedstoneMode.values()[redstoneMode.getCurrentChoiceIndex()].getDescription()));
}
use of mcjty.lib.network.Argument in project RFTools by McJty.
the class GuiItemFilter method changeMode.
private void changeMode(int side, int slot) {
ImageChoiceLabel choiceLabel = bits[side * ItemFilterContainer.BUFFER_SIZE + slot];
int c = choiceLabel.getCurrentChoiceIndex();
boolean input = false;
boolean output = false;
if (c == 1) {
input = true;
output = false;
} else if (c == 2) {
input = false;
output = true;
}
sendServerCommand(RFToolsMessages.INSTANCE, ItemFilterTileEntity.CMD_SETMODE, new Argument("side", side), new Argument("slot", slot), new Argument("input", input), new Argument("output", output));
}
use of mcjty.lib.network.Argument in project RFTools by McJty.
the class GuiTimer method setRedstonePauses.
private void setRedstonePauses() {
boolean pauses = redstonePauses.isPressed();
tileEntity.setRedstonePauses(pauses);
sendServerCommand(RFToolsMessages.INSTANCE, TimerTileEntity.CMD_SETPAUSES, new Argument("pauses", pauses));
}
use of mcjty.lib.network.Argument in project RFTools by McJty.
the class GuiTimer 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, TimerTileEntity.CMD_SETDELAY, new Argument("delay", delay));
}
use of mcjty.lib.network.Argument in project RFTools by McJty.
the class GuiEnvironmentalController method delPlayer.
private void delPlayer() {
sendServerCommand(RFToolsMessages.INSTANCE, EnvironmentalControllerTileEntity.CMD_DELPLAYER, new Argument("player", players.get(playersList.getSelected())));
listDirty = 0;
}
Aggregations