Package net.minecraft.entity.projectile
Class ProjectileHelper
java.lang.Object
net.minecraft.entity.projectile.ProjectileHelper
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic EntityRayTraceResult
getEntityHitResult
(Entity p_221273_0_, Vector3d p_221273_1_, Vector3d p_221273_2_, AxisAlignedBB p_221273_3_, Predicate<Entity> p_221273_4_, double p_221273_5_) static EntityRayTraceResult
getEntityHitResult
(World p_221269_0_, Entity p_221269_1_, Vector3d p_221269_2_, Vector3d p_221269_3_, AxisAlignedBB p_221269_4_, Predicate<Entity> p_221269_5_) static RayTraceResult
getHitResult
(Entity p_234618_0_, Predicate<Entity> p_234618_1_) static AbstractArrowEntity
getMobArrow
(LivingEntity p_221272_0_, ItemStack p_221272_1_, float p_221272_2_) static Hand
getWeaponHoldingHand
(LivingEntity livingEntity, Predicate<Item> itemPredicate) static Hand
getWeaponHoldingHand
(LivingEntity p_221274_0_, Item p_221274_1_) Deprecated.static final void
rotateTowardsMovement
(Entity p_188803_0_, float p_188803_1_)
-
Constructor Details
-
ProjectileHelper
public ProjectileHelper()
-
-
Method Details
-
getHitResult
-
getEntityHitResult
@Nullable public static EntityRayTraceResult getEntityHitResult(Entity p_221273_0_, Vector3d p_221273_1_, Vector3d p_221273_2_, AxisAlignedBB p_221273_3_, Predicate<Entity> p_221273_4_, double p_221273_5_) -
getEntityHitResult
@Nullable public static EntityRayTraceResult getEntityHitResult(World p_221269_0_, Entity p_221269_1_, Vector3d p_221269_2_, Vector3d p_221269_3_, AxisAlignedBB p_221269_4_, Predicate<Entity> p_221269_5_) -
rotateTowardsMovement
-
getWeaponHoldingHand
Deprecated. -
getWeaponHoldingHand
-
getMobArrow
public static AbstractArrowEntity getMobArrow(LivingEntity p_221272_0_, ItemStack p_221272_1_, float p_221272_2_)
-