Class ItemEntityAttributeUtil
java.lang.Object
alexiil.mc.lib.attributes.item.entity.ItemEntityAttributeUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic ItemInsertable
createItemEntityDropper
(net.minecraft.world.World world, double x, double y, double z) static ItemInsertable
createItemEntityDropper
(net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos) static ItemInsertable
createItemEntityDropper
(net.minecraft.world.World world, net.minecraft.util.math.Vec3d vec) static ItemInsertable
createItemEntityScatterer
(net.minecraft.world.World world, double x, double y, double z) static ItemInsertable
createItemEntityScatterer
(net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos) static ItemInsertable
createItemEntityScatterer
(net.minecraft.world.World world, net.minecraft.util.math.Vec3d vec) static ItemExtractable
getSpecialExtractable
(net.minecraft.entity.Entity entity)
-
Method Details
-
getSpecialExtractable
- Returns:
- An
ItemExtractable
for the given entity if it needs special handling for item pickup. (Such asItemEntity
orProjectileEntity
).
-
createItemEntityDropper
public static ItemInsertable createItemEntityDropper(net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos) - Returns:
- An
ItemInsertable
that spawnsItemEntity
s at the given position.
-
createItemEntityDropper
public static ItemInsertable createItemEntityDropper(net.minecraft.world.World world, net.minecraft.util.math.Vec3d vec) - Returns:
- An
ItemInsertable
that spawnsItemEntity
s at the given position.
-
createItemEntityDropper
public static ItemInsertable createItemEntityDropper(net.minecraft.world.World world, double x, double y, double z) - Returns:
- An
ItemInsertable
that spawnsItemEntity
s at the given position.
-
createItemEntityScatterer
public static ItemInsertable createItemEntityScatterer(net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos) - Returns:
- An
ItemInsertable
that scattersItemEntity
s at the given position usingItemScatterer.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 scattersItemEntity
s at the given position usingItemScatterer.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 scattersItemEntity
s at the given position usingItemScatterer.spawn(World, double, double, double, net.minecraft.item.ItemStack)
-