Class ProjectileUtil
java.lang.Object
net.minecraft.world.entity.projectile.ProjectileUtil
-
Field Summary
-
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_, float p_305813_, ClipContext.Block p_312920_) static HitResult
getHitResultOnMoveVector
(Entity p_278228_, Predicate<Entity> p_278315_) static HitResult
getHitResultOnMoveVector
(Entity p_312047_, Predicate<Entity> p_312251_, ClipContext.Block p_311921_) 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_, ItemStack p_345078_) 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_)
-
Field Details
-
DEFAULT_ENTITY_HIT_RESULT_MARGIN
private static final float DEFAULT_ENTITY_HIT_RESULT_MARGIN- See Also:
-
-
Constructor Details
-
ProjectileUtil
public ProjectileUtil()
-
-
Method Details
-
getHitResultOnMoveVector
-
getHitResultOnMoveVector
public static HitResult getHitResultOnMoveVector(Entity p_312047_, Predicate<Entity> p_312251_, ClipContext.Block p_311921_) -
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
public static AbstractArrow getMobArrow(LivingEntity p_37301_, ItemStack p_37302_, float p_37303_, @Nullable ItemStack p_345078_)
-