Class DefaultRandomPos
java.lang.Object
net.minecraft.world.entity.ai.util.DefaultRandomPos
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static @Nullable BlockPosgenerateRandomPosTowardDirection(PathfinderMob mob, int radius, boolean isRestricted, BlockPos pos) static @Nullable Vec3getPos(PathfinderMob mob, int radius, int verticalDistance) static @Nullable Vec3getPosAway(PathfinderMob mob, int radius, int yRange, Vec3 avoidPos) static @Nullable Vec3getPosTowards(PathfinderMob mob, int radius, int yRange, Vec3 targetPos, double amplifier)
-
Constructor Details
-
DefaultRandomPos
public DefaultRandomPos()
-
-
Method Details
-
getPos
-
getPosTowards
public static @Nullable Vec3 getPosTowards(PathfinderMob mob, int radius, int yRange, Vec3 targetPos, double amplifier) -
getPosAway
-
generateRandomPosTowardDirection
private static @Nullable BlockPos generateRandomPosTowardDirection(PathfinderMob mob, int radius, boolean isRestricted, BlockPos pos)
-