Package net.minecraft.entity.projectile
Class ProjectileHelper
- java.lang.Object
-
- net.minecraft.entity.projectile.ProjectileHelper
-
public final class ProjectileHelper extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ProjectileHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static EntityRayTraceResult
getEntityHitResult(Entity p_221273_0_, Vector3d p_221273_1_, Vector3d p_221273_2_, AxisAlignedBB p_221273_3_, java.util.function.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_, java.util.function.Predicate<Entity> p_221269_5_)
static RayTraceResult
getHitResult(Entity p_234618_0_, java.util.function.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, java.util.function.Predicate<Item> itemPredicate)
static Hand
getWeaponHoldingHand(LivingEntity p_221274_0_, Item p_221274_1_)
Deprecated.static void
rotateTowardsMovement(Entity p_188803_0_, float p_188803_1_)
-
-
-
Method Detail
-
getHitResult
public static RayTraceResult getHitResult(Entity p_234618_0_, java.util.function.Predicate<Entity> p_234618_1_)
-
getEntityHitResult
@Nullable public static EntityRayTraceResult getEntityHitResult(Entity p_221273_0_, Vector3d p_221273_1_, Vector3d p_221273_2_, AxisAlignedBB p_221273_3_, java.util.function.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_, java.util.function.Predicate<Entity> p_221269_5_)
-
rotateTowardsMovement
public static final void rotateTowardsMovement(Entity p_188803_0_, float p_188803_1_)
-
getWeaponHoldingHand
@Deprecated public static Hand getWeaponHoldingHand(LivingEntity p_221274_0_, Item p_221274_1_)
Deprecated.
-
getWeaponHoldingHand
public static Hand getWeaponHoldingHand(LivingEntity livingEntity, java.util.function.Predicate<Item> itemPredicate)
-
getMobArrow
public static AbstractArrowEntity getMobArrow(LivingEntity p_221272_0_, ItemStack p_221272_1_, float p_221272_2_)
-
-