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.

xBigEllx

Members
  • Joined

  • Last visited

Everything posted by xBigEllx

  1. Thank you, that's just what I needed. However, I needed to change the names of some of the methods I was calling, as it seems they were obfuscated (I think that's the correct term). Here is the code I used to access all dimension types: for (DimensionType type : world.getServer().func_244267_aX().func_230520_a_()) {} Here is the code I used to access all dimension Ids: for (ResourceLocation location : world.getServer().func_244267_aX().func_230520_a_().keySet()) {}
  2. Hello. I'm creating a mod that needs to access all registered Vanilla and mod dimension Ids. In 1.15, it was possible to use the following: for (DimensionType type : DimensionType.getAll()) {} From there, I could access each of their dimension Ids. This seems to have changed in 1.16 and I can't figure out another way to access these dimensions. I have tried accessing the "WORLD_TYPES" Forge registry by using the following: for (ForgeWorldType type : ForgeRegistries.WORLD_TYPES.getValues()) {} Unfortunately, it appears that this is also not the correct way to do it as there are no values in here. Any help is appreciated.

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.