@Override
  protected void drawGuiContainerForegroundLayer(int x, int y) {
    this.fontRenderer.drawString(
        this.tileEntity.getInvName(),
        this.xSize / 2 - this.fontRenderer.getStringWidth(this.tileEntity.getInvName()) / 2,
        6,
        4210752);

    this.drawTextWithTooltip("warn", "%1: " + this.tileEntity.getWarningRange(), 9, 25, x, y);
    this.drawTextWithTooltip("action", "%1: " + this.tileEntity.getActionRange(), 9, 38, x, y);

    if (!this.tileEntity.isBanMode()) {
      this.fontRenderer.drawString("Allowed", 38, 53, 2263842);
    } else {
      this.fontRenderer.drawString("Banned", 38, 53, 16711680);
    }

    this.drawTextWithTooltip("frequency", "%1:", 8, 93, x, y);
    this.textFieldFrequency.drawTextBox();

    this.drawTextWithTooltip(
        "fortron",
        "%1: "
            + ElectricityDisplay.getDisplayShort(
                this.tileEntity.getFortronEnergy(), ElectricUnit.JOULES)
            + "/"
            + ElectricityDisplay.getDisplayShort(
                this.tileEntity.getFortronCapacity(), ElectricUnit.JOULES),
        8,
        110,
        x,
        y);
    this.fontRenderer.drawString(
        "\u00a74-"
            + ElectricityDisplay.getDisplayShort(
                this.tileEntity.getFortronCost(), ElectricUnit.JOULES),
        120,
        121,
        4210752);
    super.drawGuiContainerForegroundLayer(x, y);
  }
 @Override
 protected void drawGuiContainerForegroundLayer(int par1, int par2) {
   String displayString = "Terraformer";
   this.fontRenderer.drawString(
       displayString,
       this.xSize / 2 - this.fontRenderer.getStringWidth(displayString) / 2,
       5,
       4210752);
   this.fontRenderer.drawString(
       StatCollector.translateToLocal("container.inventory"), 8, 135, 4210752);
   this.fontRenderer.drawSplitString(this.getStatus(), 105, 24, this.xSize - 105, 4210752);
   this.fontRenderer.drawString(
       ElectricityDisplay.getDisplay(this.terraformer.ueWattsPerTick * 20, ElectricUnit.WATT),
       105,
       56,
       4210752);
   this.fontRenderer.drawString(
       ElectricityDisplay.getDisplay(this.terraformer.getVoltage(), ElectricUnit.VOLTAGE),
       105,
       68,
       4210752);
 }