public final class ProjectileUtil extends Object
Constructor and Description |
---|
ProjectileUtil() |
Modifier and Type | Method and Description |
---|---|
static PersistentProjectileEntity |
createArrowProjectile(LivingEntity entity,
ItemStack stack,
float damageModifier) |
static HitResult |
getCollision(Entity entity,
Predicate<Entity> predicate) |
static EntityHitResult |
getEntityCollision(World world,
Entity entity,
Vec3d vec3d,
Vec3d vec3d2,
Box box,
Predicate<Entity> predicate) |
static Hand |
getHandPossiblyHolding(LivingEntity entity,
Item item) |
static void |
method_7484(Entity entity,
float float2) |
static EntityHitResult |
raycast(Entity entity,
Vec3d vec3d,
Vec3d vec3d2,
Box box,
Predicate<Entity> predicate,
double double2) |
@Environment(value=CLIENT) @Nullable public static EntityHitResult raycast(Entity entity, Vec3d vec3d, Vec3d vec3d2, Box box, Predicate<Entity> predicate, double double2)
@Nullable public static EntityHitResult getEntityCollision(World world, Entity entity, Vec3d vec3d, Vec3d vec3d2, Box box, Predicate<Entity> predicate)
public static final void method_7484(Entity entity, float float2)
public static Hand getHandPossiblyHolding(LivingEntity entity, Item item)
public static PersistentProjectileEntity createArrowProjectile(LivingEntity entity, ItemStack stack, float damageModifier)