public final class ProjectileHelper
extends java.lang.Object
Constructor and Description |
---|
ProjectileHelper() |
Modifier and Type | Method and Description |
---|---|
static AbstractArrowEntity |
fireArrow(LivingEntity shooter,
ItemStack arrowStack,
float distanceFactor) |
private static java.util.Set<Entity> |
getEntityAndMount(Entity rider) |
static Hand |
getHandWith(LivingEntity living,
Item itemIn) |
static RayTraceResult |
rayTrace(Entity projectile,
AxisAlignedBB boundingBox,
java.util.function.Predicate<Entity> filter,
RayTraceContext.BlockMode blockModeIn,
boolean checkEntityCollision) |
static RayTraceResult |
rayTrace(Entity projectile,
boolean checkEntityCollision,
boolean includeShooter,
Entity shooter,
RayTraceContext.BlockMode blockModeIn) |
private static RayTraceResult |
rayTrace(Entity projectile,
boolean checkEntityCollision,
boolean includeShooter,
Entity shooter,
RayTraceContext.BlockMode blockModeIn,
boolean p_221268_5_,
java.util.function.Predicate<Entity> filter,
AxisAlignedBB boundingBox) |
static EntityRayTraceResult |
rayTraceEntities(Entity shooter,
Vec3d startVec,
Vec3d endVec,
AxisAlignedBB boundingBox,
java.util.function.Predicate<Entity> filter,
double distance) |
static EntityRayTraceResult |
rayTraceEntities(World worldIn,
Entity projectile,
Vec3d startVec,
Vec3d endVec,
AxisAlignedBB boundingBox,
java.util.function.Predicate<Entity> filter) |
static EntityRayTraceResult |
rayTraceEntities(World worldIn,
Entity projectile,
Vec3d startVec,
Vec3d endVec,
AxisAlignedBB boundingBox,
java.util.function.Predicate<Entity> filter,
double distance) |
static void |
rotateTowardsMovement(Entity projectile,
float rotationSpeed) |
public static RayTraceResult rayTrace(Entity projectile, boolean checkEntityCollision, boolean includeShooter, @Nullable Entity shooter, RayTraceContext.BlockMode blockModeIn)
public static RayTraceResult rayTrace(Entity projectile, AxisAlignedBB boundingBox, java.util.function.Predicate<Entity> filter, RayTraceContext.BlockMode blockModeIn, boolean checkEntityCollision)
@Nullable public static EntityRayTraceResult rayTraceEntities(World worldIn, Entity projectile, Vec3d startVec, Vec3d endVec, AxisAlignedBB boundingBox, java.util.function.Predicate<Entity> filter)
private static RayTraceResult rayTrace(Entity projectile, boolean checkEntityCollision, boolean includeShooter, @Nullable Entity shooter, RayTraceContext.BlockMode blockModeIn, boolean p_221268_5_, java.util.function.Predicate<Entity> filter, AxisAlignedBB boundingBox)
@Nullable public static EntityRayTraceResult rayTraceEntities(Entity shooter, Vec3d startVec, Vec3d endVec, AxisAlignedBB boundingBox, java.util.function.Predicate<Entity> filter, double distance)
@Nullable public static EntityRayTraceResult rayTraceEntities(World worldIn, Entity projectile, Vec3d startVec, Vec3d endVec, AxisAlignedBB boundingBox, java.util.function.Predicate<Entity> filter, double distance)
public static final void rotateTowardsMovement(Entity projectile, float rotationSpeed)
public static Hand getHandWith(LivingEntity living, Item itemIn)
public static AbstractArrowEntity fireArrow(LivingEntity shooter, ItemStack arrowStack, float distanceFactor)