use of mcjty.lib.network.Argument in project RFTools by McJty.
the class GuiEnderMonitor method changeMode.
private void changeMode() {
EnderMonitorMode newMode = EnderMonitorMode.getMode(mode.getCurrentChoice());
tileEntity.setMode(newMode);
sendServerCommand(RFToolsMessages.INSTANCE, EnderMonitorTileEntity.CMD_MODE, new Argument("mode", newMode.getDescription()));
}
use of mcjty.lib.network.Argument in project RFTools by McJty.
the class GuiLevelEmitter method setOredictUsage.
private void setOredictUsage() {
boolean b = OREDICT_USE.equals(oreDictLabel.getCurrentChoice());
tileEntity.setOreDict(b);
sendServerCommand(RFToolsMessages.INSTANCE, LevelEmitterTileEntity.CMD_SETOREDICT, new Argument("b", b));
}
use of mcjty.lib.network.Argument in project RFTools by McJty.
the class GuiStorageScanner method moveTop.
private void moveTop() {
sendServerCommand(RFToolsMessages.INSTANCE, tileEntity.getDimension(), StorageScannerTileEntity.CMD_TOP, new Argument("index", storageList.getSelected() - 1));
storageList.setSelected(1);
listDirty = 0;
}
use of mcjty.lib.network.Argument in project RFTools by McJty.
the class GuiStorageScanner method changeRoutable.
private void changeRoutable(BlockPos c) {
sendServerCommand(RFToolsMessages.INSTANCE, tileEntity.getDimension(), StorageScannerTileEntity.CMD_TOGGLEROUTABLE, new Argument("pos", c));
listDirty = 0;
}
use of mcjty.lib.network.Argument in project RFTools by McJty.
the class GuiStorageScanner method moveUp.
private void moveUp() {
sendServerCommand(RFToolsMessages.INSTANCE, tileEntity.getDimension(), StorageScannerTileEntity.CMD_UP, new Argument("index", storageList.getSelected() - 1));
storageList.setSelected(storageList.getSelected() - 1);
listDirty = 0;
}
Aggregations