Class TargetFinder

java.lang.Object
net.minecraft.entity.ai.TargetFinder

public class TargetFinder
extends Object
  • Constructor Details

    • TargetFinder

      public TargetFinder()
  • Method Details

    • findTarget

      @Nullable public static Vec3d findTarget​(PathAwareEntity mob, int maxHorizontalDistance, int maxVerticalDistance)
    • findGroundTarget

      @Nullable public static Vec3d findGroundTarget​(PathAwareEntity mob, int maxHorizontalDistance, int maxVerticalDistance, int preferredYDifference, @Nullable Vec3d preferredAngle, double maxAngleDifference)
    • findGroundTarget

      @Nullable public static Vec3d findGroundTarget​(PathAwareEntity mob, int maxHorizontalDistance, int maxVerticalDistance)
    • findGroundTarget

      @Nullable public static Vec3d findGroundTarget​(PathAwareEntity mob, int maxHorizontalDistance, int maxVerticalDistance, ToDoubleFunction<BlockPos> pathfindingFavor)
    • findAirTarget

      @Nullable public static Vec3d findAirTarget​(PathAwareEntity mob, int maxHorizontalDistance, int maxVerticalDistance, Vec3d preferredAngle, float maxAngleDifference, int distanceAboveGroundRange, int minDistanceAboveGround)
    • method_27929

      @Nullable public static Vec3d method_27929​(PathAwareEntity pathAwareEntity, int int2, int int3, Vec3d vec3d)
    • findTargetTowards

      @Nullable public static Vec3d findTargetTowards​(PathAwareEntity mob, int maxHorizontalDistance, int maxVerticalDistance, Vec3d pos)
    • findTargetTowards

      @Nullable public static Vec3d findTargetTowards​(PathAwareEntity mob, int maxHorizontalDistance, int maxVerticalDistance, Vec3d pos, double maxAngleDifference)
    • findGroundTargetTowards

      @Nullable public static Vec3d findGroundTargetTowards​(PathAwareEntity mob, int maxHorizontalDistance, int maxVerticalDistance, int preferredYDifference, Vec3d pos, double maxAngleDifference)
    • findTargetAwayFrom

      @Nullable public static Vec3d findTargetAwayFrom​(PathAwareEntity mob, int maxHorizontalDistance, int maxVerticalDistance, Vec3d pos)
    • findGroundTargetAwayFrom

      @Nullable public static Vec3d findGroundTargetAwayFrom​(PathAwareEntity mob, int maxHorizontalDistance, int maxVerticalDistance, Vec3d pos)
    • findTarget

      @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)
    • getRandomOffset

      @Nullable private static BlockPos getRandomOffset​(Random random, int maxHorizontalDistance, int maxVerticalDistance, int preferredYDifference, @Nullable Vec3d preferredAngle, double maxAngleDifference)
    • findValidPositionAbove

      static BlockPos findValidPositionAbove​(BlockPos pos, int minDistanceAboveIllegal, int maxOffset, Predicate<BlockPos> illegalPredicate)