Posted March 22, 201411 yr Okay, so, I'm trying to add descriptions/information/tooltips to my items. I know I need to use addInformation, but it doesn't seem to be working. I've tried @SideOnly(Side.CLIENT) public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4) { par3List.add("hello"); } and @SideOnly(Side.CLIENT) public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4) { par3List.add(this.description()); } @SideOnly(Side.CLIENT) public String description() { return "Hello"; } as different ways of adding the string I've tried it with and without @SideOnly(Side.CLIENT) but the tooltip/information doesn't seem to be showing up am I missing something?
March 22, 201411 yr Well, you don't need the @SideOnly and have you tried a straight String? Try: list.add("This is Test"); http://www.slothygaming.com/img/ota.png[/img] If your grammar is shit and you blatantly don't know what you're doing, I will not help you.
March 22, 201411 yr Author Crap, I copied the code over wrong, the first bit of code was meant to just be a straight String. But yeah, I've tried it as a straight string, and without the @SideOnly, none of them seem to work
March 22, 201411 yr Did you try adding a @Override over the addInformation method to make sure you are using the right method? http://www.slothygaming.com/img/ota.png[/img] If your grammar is shit and you blatantly don't know what you're doing, I will not help you.
March 22, 201411 yr Author ... It was the import I was using import java.awt.List; instead of import java.util.List; Thanks for the help
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.