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 horizontalDist, int verticalDist)
    • getPos

      public static @Nullable Vec3 getPos(PathfinderMob mob, int horizontalDist, int verticalDist, ToDoubleFunction<BlockPos> positionWeight)
    • getPosTowards

      public static @Nullable Vec3 getPosTowards(PathfinderMob mob, int horizontalDist, int verticalDist, Vec3 towardsPos)
    • getPosAway

      public static @Nullable Vec3 getPosAway(PathfinderMob mob, int horizontalDist, int verticalDist, Vec3 avoidPos)
    • getPosAway

      public static @Nullable Vec3 getPosAway(PathfinderMob mob, double minHorizontalDist, double maxHorizontalDist, int verticalDist, Vec3 avoidPos)
    • getPosInDirection

      private static @Nullable Vec3 getPosInDirection(PathfinderMob mob, double minHorizontalDist, double maxHorizontalDist, int verticalDist, Vec3 dir, boolean restrict)
    • movePosUpOutOfSolid

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

      public static @Nullable BlockPos generateRandomPosTowardDirection(PathfinderMob mob, double horizontalDist, boolean restrict, BlockPos direction)