content: package thebetweenlands.client.gui;
  
  import net.minecraft.client.Minecraft;
  import net.minecraft.client.gui.FontRenderer;
  import net.minecraft.client.gui.GuiButton;
  import net.minecraft.client.renderer.GlStateManager;
  
  public class GuiItemNamingButton extends GuiButton {
      public GuiItemNamingButton(int id, int x, int y, int width, int height, String text) {
          super(id, x, y, width, height, text);
      }
  
      @Override
      public void drawButton(Minecraft mc, int mouseX, int mouseY, float partialTicks) {
          if (this.visible) {
              FontRenderer fontrenderer = mc.fontRenderer;
              mc.getTextureManager().bindTexture(GuiItemNaming.GUI_TEXTURE);
              GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);
              this.hovered = mouseX >= this.x && mouseY >= this.y && mouseX < this.x + this.width && mouseY < this.y + this.height;
              GlStateManager.enableBlend();
              GlStateManager.tryBlendFuncSeparate(GlStateManager.SourceFactor.SRC_ALPHA, GlStateManager.DestFactor.ONE_MINUS_SRC_ALPHA, GlStateManager.SourceFactor.ONE, GlStateManager.DestFactor.ZERO);
              GlStateManager.blendFunc(GlStateManager.SourceFactor.SRC_ALPHA, GlStateManager.DestFactor.ONE_MINUS_SRC_ALPHA);
              if (this.hovered) {
                  this.drawTexturedModalRect(this.x, this.y, 0, 77, 46, 18);
              } else {
                  this.drawTexturedModalRect(this.x, this.y, 0, 57, 46, 18);
              }
              this.mouseDragged(mc, mouseX, mouseY);
              int j = 14737632;
  
              if (this.packedFGColour != 0) {
                  j = this.packedFGColour;
              } else if (!this.enabled) {
                  j = 10526880;
              } else if (this.hovered) {
                  j = 16777120;
              }
  
              this.drawCenteredString(fontrenderer, this.displayString, this.x + this.width / 2, this.y + (this.height - 2) / 2, j);
          }
      }
  }
  