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