Jump to content

[Solved] [1.12.2] Supporting Waila, but text doesn't show up in the tooltip


Aarilight

Recommended Posts

I know this isn't quite an forge thing, but a question about an api. I did see a couple other posts about this on this forum, tho, and Waila has become a universal thing, kinda, so I figured this would be okay...

I'm having trouble getting my Waila support to work. I've registered the support and made it set a header and a body for my "Summoner" block, but neither appears. I tried adding some logging to see if the code was even being hit, and both of my providers do log when showing the tooltip for that block, but for some reason they still don't show up in the tooltip.

Here is my WailaPlugin:
https://github.com/Yuudaari/souls/blob/4a6985476a44451bfed9bb407cc7124ca2cba72a/src/main/java/yuudaari/souls/common/compat/Waila.java


Here are the lines that actually generate the tooltip:
https://github.com/Yuudaari/souls/blob/4a6985476a44451bfed9bb407cc7124ca2cba72a/src/main/java/yuudaari/souls/common/block/Summoner/SummonerTileEntity.java#L542-L557


What am I doing wrong?

[Edit: Solved]
You can't create a new List<String>, you must add your lines to the provided one.

Edited by Aarilight
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.