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.

redgeen

Members
  • Joined

  • Last visited

Everything posted by redgeen

  1. When I run @Override onItemRightClick it works just fine returning list of items around me @Override public ActionResult<ItemStack> onItemRightClick(World worldIn, PlayerEntity playerIn, Hand handIn) { playerIn.swingArm(handIn); double x = playerIn.getPosX() ; double y = playerIn.getPosY() /*+ 1.0d*/; double z = playerIn.getPosZ(); AxisAlignedBB playerRange = new AxisAlignedBB(x - 3.0f, y - 3.0f, z - 3.0f, x + 3.0f,y + 3.0f,z + 3.0f); System.out.println(playerIn.getEntityWorld().getEntitiesWithinAABB(ItemEntity.class,playerRange)); But when I try same thing using @SubscribeEvent I get empty list, why? @SubscribeEvent public static void RightClickItem(PlayerInteractEvent.RightClickItem event) { double x = event.getPlayer().getPosX() ; double y = event.getPlayer().getPosX() /*+ 1.0d*/; double z = event.getPlayer().getPosX(); AxisAlignedBB playerRange = new AxisAlignedBB(x - 3.0f, y - 3.0f, z - 3.0f, x + 3.0f,y + 3.0f,z + 3.0f); System.out.println(event.getWorld().getEntitiesWithinAABB(ItemEntity.class,playerRange));

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.