});
int x = xSize - rightMargin - GuiMachineBase.BUTTON_SIZE - 21;
int y = inputY;
inputRsButton = new RedstoneModeButton(this, -1, x, y, new IRedstoneModeControlable() {
@Override
public void setRedstoneControlMode(RedstoneControlMode mode) {
capBank.setInputControlMode(mode);
PacketHandler.INSTANCE.sendToServer(new PacketClientState(capBank));
}
@Override
public RedstoneControlMode getRedstoneControlMode() {
return capBank.getInputControlMode();
}
});
inputRsButton.setTooltipKey("enderio.gui.capBank.inputRs");
y += 18;
outputRsButton = new RedstoneModeButton(this, -1, x, y, new IRedstoneModeControlable() {
@Override
public void setRedstoneControlMode(RedstoneControlMode mode) {
capBank.setOutputControlMode(mode);
PacketHandler.INSTANCE.sendToServer(new PacketClientState(capBank));