@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);
  }