Package net.minecraft.entity.projectile
Class ProjectileUtil
java.lang.Object
net.minecraft.entity.projectile.ProjectileUtil
public final class ProjectileUtil extends Object
-
Constructor Summary
Constructors Constructor Description ProjectileUtil()
-
Method Summary
Modifier and Type Method Description static PersistentProjectileEntity
createArrowProjectile(LivingEntity entity, ItemStack stack, float damageModifier)
static HitResult
getCollision(Entity entity, Predicate<Entity> predicate)
static EntityHitResult
getEntityCollision(World world, Entity entity, Vec3d vec3d, Vec3d vec3d2, Box box, Predicate<Entity> predicate)
static Hand
getHandPossiblyHolding(LivingEntity entity, Item item)
static void
method_7484(Entity entity, float float2)
static EntityHitResult
raycast(Entity entity, Vec3d vec3d, Vec3d vec3d2, Box box, Predicate<Entity> predicate, double double2)
-
Constructor Details
-
ProjectileUtil
public ProjectileUtil()
-
-
Method Details
-
getCollision
-
raycast
-
getEntityCollision
-
method_7484
-
getHandPossiblyHolding
-
createArrowProjectile
public static PersistentProjectileEntity createArrowProjectile(LivingEntity entity, ItemStack stack, float damageModifier)
-