Jump to content

[1.7.2] Tooltip not working [SOLVED]


Jacknoshima

Recommended Posts

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?

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.