public class TargetFinder extends Object
Constructor and Description |
---|
TargetFinder() |
Modifier and Type | Method and Description |
---|---|
static Vec3d |
findAirTarget(PathAwareEntity mob,
int maxHorizontalDistance,
int maxVerticalDistance,
Vec3d preferredAngle,
float maxAngleDifference,
int distanceAboveGroundRange,
int minDistanceAboveGround) |
static Vec3d |
findGroundTarget(PathAwareEntity mob,
int maxHorizontalDistance,
int maxVerticalDistance) |
static Vec3d |
findGroundTarget(PathAwareEntity mob,
int maxHorizontalDistance,
int maxVerticalDistance,
int preferredYDifference,
Vec3d preferredAngle,
double maxAngleDifference) |
static Vec3d |
findGroundTarget(PathAwareEntity mob,
int maxHorizontalDistance,
int maxVerticalDistance,
ToDoubleFunction<BlockPos> pathfindingFavor) |
static Vec3d |
findGroundTargetAwayFrom(PathAwareEntity mob,
int maxHorizontalDistance,
int maxVerticalDistance,
Vec3d pos) |
static Vec3d |
findGroundTargetTowards(PathAwareEntity mob,
int maxHorizontalDistance,
int maxVerticalDistance,
int preferredYDifference,
Vec3d pos,
double maxAngleDifference) |
static Vec3d |
findTarget(PathAwareEntity mob,
int maxHorizontalDistance,
int maxVerticalDistance) |
private static Vec3d |
findTarget(PathAwareEntity mob,
int maxHorizontalDistance,
int maxVerticalDistance,
int preferredYDifference,
Vec3d preferredAngle,
boolean notInWater,
double maxAngleDifference,
ToDoubleFunction<BlockPos> favorProvider,
boolean aboveGround,
int distanceAboveGroundRange,
int minDistanceAboveGround,
boolean validPositionsOnly) |
static Vec3d |
findTargetAwayFrom(PathAwareEntity mob,
int maxHorizontalDistance,
int maxVerticalDistance,
Vec3d pos) |
static Vec3d |
findTargetTowards(PathAwareEntity mob,
int maxHorizontalDistance,
int maxVerticalDistance,
Vec3d pos) |
static Vec3d |
findTargetTowards(PathAwareEntity mob,
int maxHorizontalDistance,
int maxVerticalDistance,
Vec3d pos,
double maxAngleDifference) |
(package private) static BlockPos |
findValidPositionAbove(BlockPos pos,
int minDistanceAboveIllegal,
int maxOffset,
Predicate<BlockPos> illegalPredicate) |
private static BlockPos |
getRandomOffset(Random random,
int maxHorizontalDistance,
int maxVerticalDistance,
int preferredYDifference,
Vec3d preferredAngle,
double maxAngleDifference) |
static Vec3d |
method_27929(PathAwareEntity pathAwareEntity,
int int2,
int int3,
Vec3d vec3d) |
@Nullable public static Vec3d findTarget(PathAwareEntity mob, int maxHorizontalDistance, int maxVerticalDistance)
@Nullable public static Vec3d findGroundTarget(PathAwareEntity mob, int maxHorizontalDistance, int maxVerticalDistance, int preferredYDifference, @Nullable Vec3d preferredAngle, double maxAngleDifference)
@Nullable public static Vec3d findGroundTarget(PathAwareEntity mob, int maxHorizontalDistance, int maxVerticalDistance)
@Nullable public static Vec3d findGroundTarget(PathAwareEntity mob, int maxHorizontalDistance, int maxVerticalDistance, ToDoubleFunction<BlockPos> pathfindingFavor)
@Nullable public static Vec3d findAirTarget(PathAwareEntity mob, int maxHorizontalDistance, int maxVerticalDistance, Vec3d preferredAngle, float maxAngleDifference, int distanceAboveGroundRange, int minDistanceAboveGround)
@Nullable public static Vec3d method_27929(PathAwareEntity pathAwareEntity, int int2, int int3, Vec3d vec3d)
@Nullable public static Vec3d findTargetTowards(PathAwareEntity mob, int maxHorizontalDistance, int maxVerticalDistance, Vec3d pos)
@Nullable public static Vec3d findTargetTowards(PathAwareEntity mob, int maxHorizontalDistance, int maxVerticalDistance, Vec3d pos, double maxAngleDifference)
@Nullable public static Vec3d findGroundTargetTowards(PathAwareEntity mob, int maxHorizontalDistance, int maxVerticalDistance, int preferredYDifference, Vec3d pos, double maxAngleDifference)
@Nullable public static Vec3d findTargetAwayFrom(PathAwareEntity mob, int maxHorizontalDistance, int maxVerticalDistance, Vec3d pos)
@Nullable public static Vec3d findGroundTargetAwayFrom(PathAwareEntity mob, int maxHorizontalDistance, int maxVerticalDistance, Vec3d pos)
@Nullable private static Vec3d findTarget(PathAwareEntity mob, int maxHorizontalDistance, int maxVerticalDistance, int preferredYDifference, @Nullable Vec3d preferredAngle, boolean notInWater, double maxAngleDifference, ToDoubleFunction<BlockPos> favorProvider, boolean aboveGround, int distanceAboveGroundRange, int minDistanceAboveGround, boolean validPositionsOnly)
@Nullable private static BlockPos getRandomOffset(Random random, int maxHorizontalDistance, int maxVerticalDistance, int preferredYDifference, @Nullable Vec3d preferredAngle, double maxAngleDifference)