this.guiTopLeftX = (this.width - this.xSize) / 2;
this.guiTopLeftY = (this.height - this.ySize) / 2;
this.drawTexturedModalRect(this.guiTopLeftX, this.guiTopLeftY, 0, 0, this.xSize, this.ySize);
EnumAdvBattBoxMode mode = this.tileEntity.getInputMode();
this.drawTexturedModalRect(this.guiTopLeftX + 197, guiTopLeftY + 41, mode.ordinal() * 17, 169, 16, 16);
mode = this.tileEntity.getOutputMode();
this.drawTexturedModalRect(this.guiTopLeftX + 197, guiTopLeftY + 65, mode.ordinal() * 17, 186, 16, 16);
int scale = (int) (this.tileEntity.getEnergyStored() / this.tileEntity.getMaxEnergyStored() * 72.0D);