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.

Leaderboard

Popular Content

Showing content with the highest reputation on 01/05/19 in all areas

  1. thanks for everyone who wanted to help me i really appreciate it
  2. If it's your own capability then you can just instantinate it directly. Use the getDefaultInstance to grab a default instance for a modded capability that you need. In general if you can instantinate it - you probably should. I would also recommend reading about capabilities on the official docs, they might answer some of your questions. Feel free to ask if you don't understand something.
  3. You don't need to get an instance of the capability like this for the IItemHandler since forge provides one for free at CapabilityItemHandler.ITEM_HANDLER_CAPABILITY. You can though, obtaining capability references using CapabilityInject is the way to do this. Don't do this for inventories. This method is acceptable for capabilities provided by other mods if you just need the default instance but an inventory capability holds a certain amount of slots, which you declare in it's constructor. Just instantinate ItemStackHandler. This is a forum, not a chat room, please be patient.
  4. In your getSubItems you must check that the tab you are adding the item to is the tab it is supposed to belong to. Otherwise it gets added to every single creative tab, including the delete slot.
  5. when i is 0, it removes 0. [(0),1,2,3,4] when i is 1, it removes 2. [1,(2),3,4] when i is 2, it removes 4. [1,3,(4)] when i is 3, the loop terminates. [1,3].size() < 3

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.