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.

VonStrangle

Members
  • Joined

  • Last visited

  1. Hi, I'm having a problem reading the "large text" (titles/subtitles) displayed on screen. The only reference to this problem I could find was in version 1.8 on this forum: From that thread, the following code would retrieve the on-screen title by using Forge's ReflectionHelper to read protected fields: String title = (String) ReflectionHelper.findField(GuiIngame.class, "displayedTitle", "field_175201_x").get(Minecraft.getMinecraft().ingameGUI); alternatively using: String title = ReflectionHelper.getPrivateValue(GuiIngame.class, Minecraft.getMinecraft().ingameGUI, "field_175201_x", "displayedTitle"); However, in 1.14, 1.12, and even 1.8 (for me), this returns an empty string no matter what, unless I manually set the field using ReflectionHelper.findField(GuiIngame.class, "displayedTitle", "field_175201_x").set(ClientUtils.mc().ingameGUI, "Hey this is a title sort of"); Setting the field in this will NOT create a title onscreen, and the actual onscreen title has no bearing on this field- I tested with in-game title commands, and titles set via: Minecraft.getMinecraft().ingameGUI.displayTitle("This will create an actual functional title", "But I can't access it with reflections", 0, 60, 1); Is there an alternative to reflections in modern minecraft versions? Or am I missing something? I feel like I'm not accessing the correct instance of GuiInGame, however I can call methods on that instance just fine, so it might be reflections. I have never used reflections prior to this. Using reflections without Forge's wrapper also produced the same result: Field f = GuiIngame.class.getDeclaredField("displayedTitle"); f.setAccessible(true); System.out.println(f.get(Minecraft.getMinecraft().ingameGUI));

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.