Class ProjectileUtil
java.lang.Object
net.minecraft.world.entity.projectile.ProjectileUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic EntityHitResult
getEntityHitResult(Entity p_37288_, Vec3 p_37289_, Vec3 p_37290_, AABB p_37291_, Predicate<Entity> p_37292_, double p_37293_)
static EntityHitResult
getEntityHitResult(Level p_37305_, Entity p_37306_, Vec3 p_37307_, Vec3 p_37308_, AABB p_37309_, Predicate<Entity> p_37310_)
static EntityHitResult
getEntityHitResult(Level p_150176_, Entity p_150177_, Vec3 p_150178_, Vec3 p_150179_, AABB p_150180_, Predicate<Entity> p_150181_, float p_150182_)
static HitResult
getHitResult(Entity p_37295_, Predicate<Entity> p_37296_)
static AbstractArrow
getMobArrow(LivingEntity p_37301_, ItemStack p_37302_, float p_37303_)
static InteractionHand
getWeaponHoldingHand(LivingEntity livingEntity, Predicate<Item> itemPredicate)
static InteractionHand
getWeaponHoldingHand(LivingEntity p_37298_, Item p_37299_)
Deprecated.static void
rotateTowardsMovement(Entity p_37285_, float p_37286_)
-
Constructor Details
-
ProjectileUtil
public ProjectileUtil()
-
-
Method Details
-
getHitResult
-
getEntityHitResult
-
getEntityHitResult
-
getEntityHitResult
-
rotateTowardsMovement
-
getWeaponHoldingHand
@Deprecated public static InteractionHand getWeaponHoldingHand(LivingEntity p_37298_, Item p_37299_)Deprecated. -
getWeaponHoldingHand
public static InteractionHand getWeaponHoldingHand(LivingEntity livingEntity, Predicate<Item> itemPredicate) -
getMobArrow
-