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_) private static HitResult
getHitResult
(Vec3 p_278237_, Entity p_278320_, Predicate<Entity> p_278257_, Vec3 p_278342_, Level p_278321_) static HitResult
getHitResultOnMoveVector
(Entity p_278228_, Predicate<Entity> p_278315_) static HitResult
getHitResultOnViewVector
(Entity p_278281_, Predicate<Entity> p_278306_, double p_278293_) 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
-
getHitResultOnMoveVector
-
getHitResultOnViewVector
-
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
-