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);
this.drawTexturedModalRect(this.guiTopLeftX + 64, this.guiTopLeftY + 46, 0, 166, scale, 3);
// Draw input/output sprites on the direction chooser