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.

loordgek

Members
  • Joined

  • Last visited

Everything posted by loordgek

  1. save the old oldBackpack to nbt and load it in the new one
  2. https://github.com/Luis-st/Forge-1.16.5-36.0.1-mdk/blob/main/forge-1.16.5-36.0.1-mdk/src/main/java/net/luis/cave/api/event/ModEventFactory.java you never post the event
  3. forge bus is for when the game starts
  4. https://github.com/MinecraftForge/MinecraftForge/blob/1.16.x/src/main/java/net/minecraftforge/event/entity/player/PlayerEvent.java#L93 https://github.com/MinecraftForge/MinecraftForge/blob/1.16.x/src/main/java/net/minecraftforge/event/entity/player/PlayerEvent.java#L135
  5. go and look what assertInventorySize does and A: replicate it using IItemHandler or B: remove it
  6. private LazyOptional<CombinedInvWrapper> optional = LazyOptional.of(() -> this will lazy initialized); EnderChestInventory enderChestInventory = player.getInventoryEnderChest(); IItemHandlerModifiable enderChestModifiable = new InvWrapper(enderChestInventory); invWrapper = new CombinedInvWrapper(enderChestModifiable, inventory); return invWrapper; that can be reduced to 1 line
  7. is your event method static ?
  8. 1 does getCapability return a IModItemHandler ? 2 does IModItemHandler extend IItemHandlerModifiable ?
  9. show your container class
  10. in serializeNBT return inventory.serializeNBT and in deserializeNBT call inventory.serializeNBT.deserializeNBT use CompoundNBT as Generic ICapabilitySerializable instead of INBT
  11. yes but you need to save your inventory,instead of ICapabilityProvider implement ICapabilitySerializable
  12. the red box are the coordinates
  13. what do you want to delay
  14. that is never going to work 1 tileB needs to extend tileA 2 change the code you need to change 3 in registerTileEntities register tileB as tileA
  15. what are you trying to do
  16. no but syncing nbt to the client does have a limit yes
  17. what are you trying to do from a end user perspective

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.