Class ItemEntityAttributeUtil

java.lang.Object
alexiil.mc.lib.attributes.item.entity.ItemEntityAttributeUtil

public final class ItemEntityAttributeUtil
extends java.lang.Object
  • Method Details

    • getSpecialExtractable

      public static ItemExtractable getSpecialExtractable​(net.minecraft.entity.Entity entity)
      Returns:
      An ItemExtractable for the given entity if it needs special handling for item pickup. (Such as ItemEntity or ProjectileEntity).
    • createItemEntityDropper

      public static ItemInsertable createItemEntityDropper​(net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos)
      Returns:
      An ItemInsertable that spawns ItemEntitys at the given position.
    • createItemEntityDropper

      public static ItemInsertable createItemEntityDropper​(net.minecraft.world.World world, net.minecraft.util.math.Vec3d vec)
      Returns:
      An ItemInsertable that spawns ItemEntitys at the given position.
    • createItemEntityDropper

      public static ItemInsertable createItemEntityDropper​(net.minecraft.world.World world, double x, double y, double z)
      Returns:
      An ItemInsertable that spawns ItemEntitys at the given position.
    • createItemEntityScatterer

      public static ItemInsertable createItemEntityScatterer​(net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos)
      Returns:
      An ItemInsertable that scatters ItemEntitys at the given position using ItemScatterer.spawn(World, double, double, double, net.minecraft.item.ItemStack)
    • createItemEntityScatterer

      public static ItemInsertable createItemEntityScatterer​(net.minecraft.world.World world, net.minecraft.util.math.Vec3d vec)
      Returns:
      An ItemInsertable that scatters ItemEntitys at the given position using ItemScatterer.spawn(World, double, double, double, net.minecraft.item.ItemStack)
    • createItemEntityScatterer

      public static ItemInsertable createItemEntityScatterer​(net.minecraft.world.World world, double x, double y, double z)
      Returns:
      An ItemInsertable that scatters ItemEntitys at the given position using ItemScatterer.spawn(World, double, double, double, net.minecraft.item.ItemStack)