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.

Konako

Members
  • Joined

  • Last visited

  1. What object do I have to pass in to access the field from in this instance?
  2. The SRG name you provided does the same error.
  3. Hi, I'm trying to receive the data from the tablist, most notably the footer and header. Here is the method I am using to obtain the private fields. I try to check for both the forge name and vanilla: private String getPrivateStringFieldFromObject(Object object, String forgeFieldName, String vanillaFieldName) throws NoSuchFieldException, SecurityException, IllegalArgumentException, IllegalAccessException { Field targetField = null; try { targetField = object.getClass().getDeclaredField(forgeFieldName); } catch (NoSuchFieldException e) { targetField = object.getClass().getDeclaredField(vanillaFieldName); } if (targetField != null) { targetField.setAccessible(true); return String.valueOf(targetField.get(object).toString()).toString(); } else { return ""; } } Here is the call that I use: getPrivateStringFieldFromObject(minecraft.ingameGUI.getTabList().getClass(), "footer", "field_175255_h") however I get java.lang.NoSuchFieldException after catching the first one. I don't see how I'm not getting the footer.

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.