Add getHighlightTip allowing a item to override its displayed renderToolHightlight.

This commit is contained in:
AlgorithmX2 committed 2015-12-13 04:47:25 -06:00
1 parent 2ed4f39a13
commit 8db720151d
2 files changed
+18 -3

No files matched your search

@@ -597,6 +597,8 @@ public class GuiIngameForge extends GuiIngame
if (this.highlightingItemStack.hasDisplayName())
name = EnumChatFormatting.ITALIC + name;
name = this.highlightingItemStack.getItem().getHighlightTip(this.highlightingItemStack, name);
int opacity = (int)((float)this.remainingHighlightTicks * 256.0F / 10.0F);
if (opacity > 255) opacity = 255;