Class LandRandomPos

java.lang.Object
net.minecraft.world.entity.ai.util.LandRandomPos

public class LandRandomPos extends Object
  • Constructor Details

    • LandRandomPos

      public LandRandomPos()
  • Method Details

    • getPos

      public static @Nullable Vec3 getPos(PathfinderMob mob, int radius, int verticalRange)
    • getPos

      public static @Nullable Vec3 getPos(PathfinderMob mob, int radius, int yRange, ToDoubleFunction<BlockPos> toDoubleFunction)
    • getPosTowards

      public static @Nullable Vec3 getPosTowards(PathfinderMob mob, int radius, int yRange, Vec3 pos)
    • getPosAway

      public static @Nullable Vec3 getPosAway(PathfinderMob mob, int radius, int yRange, Vec3 pos)
    • getPosAway

      public static @Nullable Vec3 getPosAway(PathfinderMob mob, double minDistance, double maxDistance, int yRange, Vec3 pos)
    • getPosInDirection

      private static @Nullable Vec3 getPosInDirection(PathfinderMob mob, double minDistance, double maxDistance, int yRange, Vec3 pos, boolean isRestricted)
    • movePosUpOutOfSolid

      public static @Nullable BlockPos movePosUpOutOfSolid(PathfinderMob mob, BlockPos pos)
    • generateRandomPosTowardDirection

      public static @Nullable BlockPos generateRandomPosTowardDirection(PathfinderMob mob, double radius, boolean shortCircuit, BlockPos pos)