Class RandomPos
java.lang.Object
net.minecraft.world.entity.ai.util.RandomPos
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic BlockPos
generateRandomDirection(Random p_148550_, int p_148551_, int p_148552_)
static BlockPos
generateRandomDirectionWithinRadians(Random p_148554_, int p_148555_, int p_148556_, int p_148557_, double p_148558_, double p_148559_, double p_148560_)
static Vec3
generateRandomPos(Supplier<BlockPos> p_148562_, ToDoubleFunction<BlockPos> p_148563_)
static Vec3
generateRandomPos(PathfinderMob p_148543_, Supplier<BlockPos> p_148544_)
static BlockPos
generateRandomPosTowardDirection(PathfinderMob p_148538_, int p_148539_, Random p_148540_, BlockPos p_148541_)
static BlockPos
moveUpOutOfSolid(BlockPos p_148546_, int p_148547_, Predicate<BlockPos> p_148548_)
static BlockPos
moveUpToAboveSolid(BlockPos p_26948_, int p_26949_, int p_26950_, Predicate<BlockPos> p_26951_)
-
Field Details
-
RANDOM_POS_ATTEMPTS
private static final int RANDOM_POS_ATTEMPTS- See Also:
- Constant Field Values
-
-
Constructor Details
-
RandomPos
public RandomPos()
-
-
Method Details
-
generateRandomDirection
-
generateRandomDirectionWithinRadians
-
moveUpOutOfSolid
-
moveUpToAboveSolid
-
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_)
-