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.

FrancoRoura

Members
  • Joined

  • Last visited

  1. This is exactly what I was looking for, it's readable and idiomatic. I'll mark this as solved, thanks again.
  2. Hello everyone, I'm trying to override `Mob#wantsToPickUp` for custom living entities. Is there a way to detect whether an object matches something like the `minecraft:logs` tag? I'm currently doing this, but I'd like to go from O(n) to O(1) time complexity. public static final Set<Item> WANTED_ITEMS; // ... @Override public boolean wantsToPickUp(ItemStack itemStack) { return WANTED_ITEMS.contains(itemStack.getItem()); } I was thinking it would be useful if there was some sort of way to do `itemStack.hasTag(Tags.LOGS);` or something along those lines, but I couldn't find any info about tags in the docs. Also, this would make my mod compatible with trees from other mods, unlike a set where I hardcode all of the vanilla minecraft logs. Thanks in advance, Franco.

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.