public final class ProjectileHelper
extends java.lang.Object
コンストラクタと説明 |
---|
ProjectileHelper() |
修飾子とタイプ | メソッドと説明 |
---|---|
static AbstractArrowEntity |
fireArrow(LivingEntity shooter,
ItemStack arrowStack,
float distanceFactor) |
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) |
static EntityRayTraceResult |
rayTraceEntities(Entity shooter,
Vec3d startVec,
Vec3d endVec,
AxisAlignedBB boundingBox,
java.util.function.Predicate<Entity> filter,
double distance)
Gets the EntityRayTraceResult representing the entity hit
|
static EntityRayTraceResult |
rayTraceEntities(World worldIn,
Entity projectile,
Vec3d startVec,
Vec3d endVec,
AxisAlignedBB boundingBox,
java.util.function.Predicate<Entity> filter)
Gets the EntityRayTraceResult representing the entity hit
|
static EntityRayTraceResult |
rayTraceEntities(World worldIn,
Entity projectile,
Vec3d startVec,
Vec3d endVec,
AxisAlignedBB boundingBox,
java.util.function.Predicate<Entity> filter,
double distance)
Gets the EntityRayTraceResult representing the entity hit
|
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)
@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)