Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

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

Featured Replies

Posted

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

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.