@Override protected void drawGuiContainerBackgroundLayer(float partialTicks, int rawMouseX, int rawMouseY) { // Draw background GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F); if (texture != null) { RenderUtils.bindTexture(texture); int xStart = (getScreenWidth() - getGuiWidth()) / 2; int yStart = (getScreenHeight() - getGuiHeight()) / 2; this.drawTexturedModalRect(xStart, yStart, 0, 0, getGuiWidth(), getGuiHeight()); } // Draw components GL11.glPushMatrix(); GL11.glTranslatef(getGuiPositionX(), getGuiPositionY(), 0.0F); drawComponents(false, rawMouseX, rawMouseY, partialTicks); GL11.glPopMatrix(); }