public class TargetFinder extends Object
Constructor and Description |
---|
TargetFinder() |
Modifier and Type | Method and Description |
---|---|
static Vec3d |
findAirTarget(MobEntityWithAi mob,
int maxHorizontalDistance,
int maxVerticalDistance,
Vec3d preferredAngle,
float maxAngleDifference,
int distanceAboveGroundRange,
int minDistanceAboveGround) |
static Vec3d |
findGroundTarget(MobEntityWithAi mob,
int maxHorizontalDistance,
int maxVerticalDistance) |
static Vec3d |
findGroundTarget(MobEntityWithAi mob,
int maxHorizontalDistance,
int maxVerticalDistance,
int preferredYDifference,
Vec3d preferredAngle,
double maxAngleDifference) |
static Vec3d |
findGroundTarget(MobEntityWithAi mob,
int maxHorizontalDistance,
int maxVerticalDistance,
ToDoubleFunction<BlockPos> pathfindingFavor) |
static Vec3d |
findGroundTargetAwayFrom(MobEntityWithAi mob,
int maxHorizontalDistance,
int maxVerticalDistance,
Vec3d pos) |
static Vec3d |
findGroundTargetTowards(MobEntityWithAi mob,
int maxHorizontalDistance,
int maxVerticalDistance,
int preferredYDifference,
Vec3d pos,
double maxAngleDifference) |
static Vec3d |
findTarget(MobEntityWithAi mob,
int maxHorizontalDistance,
int maxVerticalDistance) |
private static Vec3d |
findTarget(MobEntityWithAi 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(MobEntityWithAi mob,
int maxHorizontalDistance,
int maxVerticalDistance,
Vec3d pos) |
static Vec3d |
findTargetTowards(MobEntityWithAi mob,
int maxHorizontalDistance,
int maxVerticalDistance,
Vec3d pos) |
static Vec3d |
findTargetTowards(MobEntityWithAi 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) |
@Nullable public static Vec3d findTarget(MobEntityWithAi mob, int maxHorizontalDistance, int maxVerticalDistance)
@Nullable public static Vec3d findGroundTarget(MobEntityWithAi mob, int maxHorizontalDistance, int maxVerticalDistance, int preferredYDifference, @Nullable Vec3d preferredAngle, double maxAngleDifference)
@Nullable public static Vec3d findGroundTarget(MobEntityWithAi mob, int maxHorizontalDistance, int maxVerticalDistance)
@Nullable public static Vec3d findGroundTarget(MobEntityWithAi mob, int maxHorizontalDistance, int maxVerticalDistance, ToDoubleFunction<BlockPos> pathfindingFavor)
@Nullable public static Vec3d findAirTarget(MobEntityWithAi mob, int maxHorizontalDistance, int maxVerticalDistance, Vec3d preferredAngle, float maxAngleDifference, int distanceAboveGroundRange, int minDistanceAboveGround)
@Nullable public static Vec3d findTargetTowards(MobEntityWithAi mob, int maxHorizontalDistance, int maxVerticalDistance, Vec3d pos)
@Nullable public static Vec3d findTargetTowards(MobEntityWithAi mob, int maxHorizontalDistance, int maxVerticalDistance, Vec3d pos, double maxAngleDifference)
@Nullable public static Vec3d findGroundTargetTowards(MobEntityWithAi mob, int maxHorizontalDistance, int maxVerticalDistance, int preferredYDifference, Vec3d pos, double maxAngleDifference)
@Nullable public static Vec3d findTargetAwayFrom(MobEntityWithAi mob, int maxHorizontalDistance, int maxVerticalDistance, Vec3d pos)
@Nullable public static Vec3d findGroundTargetAwayFrom(MobEntityWithAi mob, int maxHorizontalDistance, int maxVerticalDistance, Vec3d pos)
@Nullable private static Vec3d findTarget(MobEntityWithAi 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)