Class RandomPos

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

public class RandomPos extends Object
  • Field Details

  • Constructor Details

    • RandomPos

      public RandomPos()
  • Method Details

    • generateRandomDirection

      public static BlockPos generateRandomDirection(Random p_148550_, int p_148551_, int p_148552_)
    • generateRandomDirectionWithinRadians

      @Nullable public static BlockPos generateRandomDirectionWithinRadians(Random p_148554_, int p_148555_, int p_148556_, int p_148557_, double p_148558_, double p_148559_, double p_148560_)
    • moveUpOutOfSolid

      public static BlockPos moveUpOutOfSolid(BlockPos p_148546_, int p_148547_, Predicate<BlockPos> p_148548_)
    • moveUpToAboveSolid

      public static BlockPos moveUpToAboveSolid(BlockPos p_26948_, int p_26949_, int p_26950_, Predicate<BlockPos> p_26951_)
    • generateRandomPos

      @Nullable public static Vec3 generateRandomPos(PathfinderMob p_148543_, Supplier<BlockPos> p_148544_)
    • generateRandomPos

      @Nullable public static Vec3 generateRandomPos(Supplier<BlockPos> p_148562_, ToDoubleFunction<BlockPos> p_148563_)
    • generateRandomPosTowardDirection

      public static BlockPos generateRandomPosTowardDirection(PathfinderMob p_148538_, int p_148539_, Random p_148540_, BlockPos p_148541_)