public void drawSearchBar() { if (searchBar.getVisible()) { searchBar.drawTextBox(); GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F); GlStateManager.enableBlend(); GlStateManager.blendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA); this.mc .getTextureManager() .bindTexture(us.ichun.mods.hats.client.gui.GuiHatSelection.texIcons); drawTexturedModalRect(this.width / 2 - 85, height - 22, 128, 0, 16, 16); GlStateManager.disableBlend(); } }