net.minecraft.entity.projectile

public final class ProjectileUtil

net.minecraft.world.entity.projectile.ProjectileUtil
net.minecraft.class_1675
net.minecraft.entity.projectile.ProjectileUtil

Field summary

Modifier and TypeField
public static final float
DEFAULT_ENTITY_HIT_RESULT_MARGIN
field_46654
DEFAULT_MARGIN

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
public static HitResult
getHitResultOnMoveVector(Entity source, Predicate<Entity> matching)
method_49997(class_1297 arg0, Predicate<class_1297> arg1)
getCollision(Entity entity, Predicate<Entity> predicate)
public static com.mojang.datafixers.util.Either<BlockHitResult, Collection<EntityHitResult>>
getHitEntitiesAlong(Entity attacker, AttackRange attackRange, Predicate<Entity> matching, ClipContext$Block blockClipType)
method_75209(class_1297 arg0, class_12392 arg1, Predicate<class_1297> arg2, class_3959$class_3960 arg3)
collectPiercingCollisions(Entity entity, AttackRangeComponent attackRange, Predicate<Entity> hitPredicate, RaycastContext$ShapeType shapeType)
public static HitResult
getHitResultOnMoveVector(Entity source, Predicate<Entity> matching, ClipContext$Block clipType)
method_55054(class_1297 arg0, Predicate<class_1297> arg1, class_3959$class_3960 arg2)
getCollision(Entity entity, Predicate<Entity> predicate, RaycastContext$ShapeType raycastShapeType)
public static HitResult
getHitResultOnViewVector(Entity source, Predicate<Entity> matching, double distance)
method_49998(class_1297 arg0, Predicate<class_1297> arg1, double arg2)
getCollision(Entity entity, Predicate<Entity> predicate, double range)
private static HitResult
getHitResult(Vec3 from, Entity source, Predicate<Entity> matching, Vec3 delta, Level level, float entityMargin, ClipContext$Block clipType)
method_18074(class_243 arg0, class_1297 arg1, Predicate<class_1297> arg2, class_243 arg3, class_1937 arg4, float arg5, class_3959$class_3960 arg6)
getCollision(Vec3d pos, Entity entity, Predicate<Entity> predicate, Vec3d velocity, World world, float margin, RaycastContext$ShapeType raycastShapeType)
private static com.mojang.datafixers.util.Either<BlockHitResult, Collection<EntityHitResult>>
getHitEntitiesAlong(Entity source, Vec3 origin, Vec3 from, Predicate<Entity> matching, Vec3 to, float entityMargin, ClipContext$Block clipType)
method_75212(class_1297 arg0, class_243 arg1, class_243 arg2, Predicate<class_1297> arg3, class_243 arg4, float arg5, class_3959$class_3960 arg6)
collectPiercingCollisions(Entity entity, Vec3d pos, Vec3d minReach, Predicate<Entity> hitPredicate, Vec3d maxReach, float hitboxMargin, RaycastContext$ShapeType shapeType)
public static EntityHitResult
getEntityHitResult(Entity except, Vec3 from, Vec3 to, AABB box, Predicate<Entity> matching, double maxValue)
method_18075(class_1297 arg0, class_243 arg1, class_243 arg2, class_238 arg3, Predicate<class_1297> arg4, double arg5)
raycast(Entity entity, Vec3d min, Vec3d max, Box box, Predicate<Entity> predicate, double maxDistance)
public static EntityHitResult
getEntityHitResult(Level level, Projectile source, Vec3 from, Vec3 to, AABB targetSearchArea, Predicate<Entity> matching)
method_18077(class_1937 arg0, class_1676 arg1, class_243 arg2, class_243 arg3, class_238 arg4, Predicate<class_1297> arg5)
getEntityCollision(World world, ProjectileEntity projectile, Vec3d min, Vec3d max, Box box, Predicate<Entity> predicate)
public static float
computeMargin(Entity source)
method_71624(class_1297 arg0)
getToleranceMargin(Entity entity)
public static EntityHitResult
getEntityHitResult(Level level, Entity source, Vec3 from, Vec3 to, AABB targetSearchArea, Predicate<Entity> matching, float entityMargin)
method_37226(class_1937 arg0, class_1297 arg1, class_243 arg2, class_243 arg3, class_238 arg4, Predicate<class_1297> arg5, float arg6)
getEntityCollision(World world, Entity entity, Vec3d min, Vec3d max, Box box, Predicate<Entity> predicate, float margin)
public static Collection<EntityHitResult>
getManyEntityHitResult(Level level, Entity source, Vec3 from, Vec3 to, AABB targetSearchArea, Predicate<Entity> matching, boolean includeFromEntity)
method_75210(class_1937 arg0, class_1297 arg1, class_243 arg2, class_243 arg3, class_238 arg4, Predicate<class_1297> arg5, boolean arg6)
collectPiercingCollisions(World world, Entity entity, Vec3d from, Vec3d to, Box box, Predicate<Entity> hitPredicate, boolean skipRaycast)
public static Collection<EntityHitResult>
getManyEntityHitResult(Level level, Entity source, Vec3 from, Vec3 to, AABB targetSearchArea, Predicate<Entity> matching, float entityMargin, ClipContext$Block clipType, boolean includeFromEntity)
method_75215(class_1937 arg0, class_1297 arg1, class_243 arg2, class_243 arg3, class_238 arg4, Predicate<class_1297> arg5, float arg6, class_3959$class_3960 arg7, boolean arg8)
collectPiercingCollisions(World world, Entity entity, Vec3d from, Vec3d to, Box box, Predicate<Entity> hitPredicate, float hitboxMargin, RaycastContext$ShapeType arg7, boolean arg8)
public static void
rotateTowardsMovement(Entity projectile, float rotationSpeed)
method_7484(class_1297 arg0, float arg1)
setRotationFromVelocity(Entity entity, float tickProgress)
public static Hand
getWeaponHoldingHand(LivingEntity mob, Item weaponItem)
method_18812(class_1309 arg0, class_1792 arg1)
getHandPossiblyHolding(LivingEntity entity, Item item)
public static PersistentProjectileEntity
getMobArrow(LivingEntity mob, ItemStack projectile, float power, ItemStack firedFromWeapon)
method_18813(class_1309 arg0, class_1799 arg1, float arg2, class_1799 arg3)
createArrowProjectile(LivingEntity entity, ItemStack stack, float damageModifier, ItemStack bow)