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.

olari

Members
  • Joined

  • Last visited

  1. Here's the final code: private Field overlayMessageField = null; // Called at initialization private void findOverlayTextField() { this.overlayMessageField = ReflectionHelper.findField(GuiIngame.class, "overlayMessage"); } public String getActionbar() { try { return (String)this.overlayMessageField.get(mc.ingameGUI); } catch (IllegalAccessException e) { e.printStackTrace(); } return null; }
  2. Got it working! String title = ReflectionHelper.getPrivateValue(GuiIngame.class, mc.ingameGUI, 8);
  3. Thank you very much for the hasty reply. I'll look into using reflection.
  4. I'm trying to get the text from the /title actionbar command to get some information that a server presents there. From the Minecraft decompilation I've gathered that the text itself is kept and used in net.minecraft.client.gui.GuiIngame, but I don't have access to it. public class GuiIngame { protected String overlayMessage; // text itself public void setOverlayMessage(...); // setter // no getter } The only way I can come up with to get this information is to catch the SPacketTitle itself when it arrives. This seems like a pretty daunting task so I thought I'd ask here first for alternatives. If networking is the only option, I would like some guidance on how to approach it.

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.