@Override
public void initGui() {
super.initGui();
redstoneTab = addTab(new TabRedstoneControl(this, baseTile));
configTab = addTab(new TabConfiguration(this, baseTile));
securityTab = addTab(new TabSecurity(this, baseTile, playerName));
securityTab.setVisible(baseTile.enableSecurity() && baseTile.isSecured());
if (!myInfo.isEmpty()) {
addTab(new TabInfo(this, myInfo));
}
addElement(new ElementEnergyStored(this, 80, 18, baseTile.getEnergyStorage()).setInfinite(baseTile.isCreative));
ElementSimple infoInput = (ElementSimple) new ElementSimple(this, 33, 16).setToolTip("info.cofh.input").setSize(20, 20).setTexture(TEX_INFO_INPUT, 20, 20);
ElementSimple infoOutput = (ElementSimple) new ElementSimple(this, 123, 16).setToolTip("info.cofh.output").setSize(20, 20).setTexture(TEX_INFO_OUTPUT, 20, 20);
addElement(infoInput);
addElement(infoOutput);
decRecv = new ElementButton(this, 28, 56, "DecRecv", 176, 0, 176, 14, 176, 28, 14, 14, TEX_PATH).setToolTipLocalized(true);
incRecv = new ElementButton(this, 44, 56, "IncRecv", 190, 0, 190, 14, 190, 28, 14, 14, TEX_PATH).setToolTipLocalized(true);
decSend = new ElementButton(this, 118, 56, "DecSend", 176, 0, 176, 14, 176, 28, 14, 14, TEX_PATH).setToolTipLocalized(true);
incSend = new ElementButton(this, 134, 56, "IncSend", 190, 0, 190, 14, 190, 28, 14, 14, TEX_PATH).setToolTipLocalized(true);
addElement(decRecv);
addElement(incRecv);
addElement(decSend);
addElement(incSend);
}