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