/** * Renders the creative inventory hovering text if mouse is over it. Returns true if did render or * false otherwise. Params: current creative tab to be checked, current mouse x position, current * mouse y position. */ protected boolean renderCreativeInventoryHoveringText( CreativeTabs par1CreativeTabs, int par2, int par3) { int var4 = par1CreativeTabs.getTabColumn(); int var5 = 28 * var4; byte var6 = 0; if (var4 == 5) { var5 = this.xSize - 28 + 2; } else if (var4 > 0) { var5 += var4; } int var7; if (par1CreativeTabs.isTabInFirstRow()) { var7 = var6 - 32; } else { var7 = var6 + this.ySize; } if (this.func_74188_c(var5 + 3, var7 + 3, 23, 27, par2, par3)) { this.drawCreativeTabHoveringText(par1CreativeTabs.getTranslatedTabLabel(), par2, par3); return true; } else { return false; } }
/** Draw the foreground layer for the GuiContainer (everything in front of the items) */ protected void drawGuiContainerForegroundLayer(int par1, int par2) { CreativeTabs var3 = CreativeTabs.creativeTabArray[selectedTabIndex]; if (var3 != null && var3.drawInForegroundOfTab()) { this.fontRenderer.drawString(var3.getTranslatedTabLabel(), 8, 6, 4210752); } }