Class RandomPos
java.lang.Object
net.minecraft.world.entity.ai.util.RandomPos
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic BlockPos
generateRandomDirection
(RandomSource p_217852_, int p_217853_, int p_217854_) static BlockPos
generateRandomDirectionWithinRadians
(RandomSource p_217856_, int p_217857_, int p_217858_, int p_217859_, double p_217860_, double p_217861_, double p_217862_) 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_217864_, int p_217865_, RandomSource p_217866_, BlockPos p_217867_) 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:
-
-
Constructor Details
-
RandomPos
public RandomPos()
-
-
Method Details
-
generateRandomDirection
public static BlockPos generateRandomDirection(RandomSource p_217852_, int p_217853_, int p_217854_) -
generateRandomDirectionWithinRadians
@Nullable public static BlockPos generateRandomDirectionWithinRadians(RandomSource p_217856_, int p_217857_, int p_217858_, int p_217859_, double p_217860_, double p_217861_, double p_217862_) -
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_217864_, int p_217865_, RandomSource p_217866_, BlockPos p_217867_)
-