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.

OrenjiAo64

Members
  • Joined

  • Last visited

  1. OrenjiAo64 changed their profile photo
  2. I get when I try to run it: error: unreported exception IllegalAccessException; must be caught or declared to be thrown field.set(ItemGroup.TAB_FOOD, Items.COOKIE); In the IDE I have: Unhandled exception: java.lang.IllegalAccessException That's everything.
  3. I'm not exactly sure how to use reflection. I've tried looking it up but I haven't been able to find anything about the newer ObfuscationReflectionHelper in 1.16. I currently have this: Field field = ObfuscationReflectionHelper.findField(ItemGroup.class, "iconItemStack"); field.set(ItemGroup.TAB_FOOD, new ItemStack(Items.COOKIE)); I have also tried replacing "iconItemStack" with "field_151245_t" but I'm still not sure how to do this. EDIT: I'm getting the error: IllegalAccessException – if this Field object is enforcing Java language access control and the underlying field is either inaccessible or final
  4. I am in the process of creating a food mod and I'm wondering if it's possible to change the icon of the vanilla Food tab as well as remove certain vanilla items from that tab. I have changed it's name to "Food - Misc" in my mod's en_us.lang so that isn't a problem.

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.