use of mcjty.lib.network.Argument in project RFTools by McJty.
the class GuiShield method changeDamageType.
private void changeDamageType() {
tileEntity.setDamageMode(DamageTypeMode.getMode(damageType.getCurrentChoice()));
sendServerCommand(RFToolsMessages.INSTANCE, ShieldTEBase.CMD_DAMAGEMODE, new Argument("mode", DamageTypeMode.getMode(damageType.getCurrentChoice()).getDescription()));
}
use of mcjty.lib.network.Argument in project RFTools by McJty.
the class GuiShield method moveFilterUp.
private void moveFilterUp() {
sendServerCommand(RFToolsMessages.INSTANCE, ShieldTEBase.CMD_UPFILTER, new Argument("selected", filterList.getSelected()));
listDirty = 0;
}
use of mcjty.lib.network.Argument in project RFTools by McJty.
the class GuiShield method applyCamoToShield.
private void applyCamoToShield() {
ItemStack stack = tileEntity.getStackInSlot(0);
int pass = 0;
if (!stack.isEmpty()) {
Block block = Block.getBlockFromItem(stack.getItem());
if (block != null) {
pass = block.getBlockLayer().ordinal();
}
}
sendServerCommand(RFToolsMessages.INSTANCE, ShieldTEBase.CMD_APPLYCAMO, new Argument("pass", pass));
}
use of mcjty.lib.network.Argument in project RFTools by McJty.
the class GuiShield method moveFilterDown.
private void moveFilterDown() {
sendServerCommand(RFToolsMessages.INSTANCE, ShieldTEBase.CMD_DOWNFILTER, new Argument("selected", filterList.getSelected()));
listDirty = 0;
}
use of mcjty.lib.network.Argument in project RFTools by McJty.
the class GuiShield method removeSelectedFilter.
private void removeSelectedFilter() {
sendServerCommand(RFToolsMessages.INSTANCE, ShieldTEBase.CMD_DELFILTER, new Argument("selected", filterList.getSelected()));
listDirty = 0;
}
Aggregations