Last active
November 14, 2016 04:29
-
-
Save matshou/ecaaca077960718269a7409a431577b8 to your computer and use it in GitHub Desktop.
How to add colour to item description text.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@SideOnly(Side.CLIENT) | |
@Override | |
public void addInformation(ItemStack stack, EntityPlayer player, java.util.List<String> info, boolean par4) | |
{ | |
info.add(com.mojang.realmsclient.gui.ChatFormatting.RED + "This item " + | |
com.mojang.realmsclient.gui.ChatFormatting.GREEN + "has a " + | |
com.mojang.realmsclient.gui.ChatFormatting.BLUE + "colourful " + | |
com.mojang.realmsclient.gui.ChatFormatting.GOLD + "description."); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment