Class LandRandomPos
java.lang.Object
net.minecraft.world.entity.ai.util.LandRandomPos
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable BlockPosgenerateRandomPosTowardDirection(PathfinderMob mob, double radius, boolean shortCircuit, BlockPos pos) static @Nullable Vec3getPos(PathfinderMob mob, int radius, int verticalRange) static @Nullable Vec3getPos(PathfinderMob mob, int radius, int yRange, ToDoubleFunction<BlockPos> toDoubleFunction) static @Nullable Vec3getPosAway(PathfinderMob mob, double minDistance, double maxDistance, int yRange, Vec3 pos) static @Nullable Vec3getPosAway(PathfinderMob mob, int radius, int yRange, Vec3 pos) private static @Nullable Vec3getPosInDirection(PathfinderMob mob, double minDistance, double maxDistance, int yRange, Vec3 pos, boolean isRestricted) static @Nullable Vec3getPosTowards(PathfinderMob mob, int radius, int yRange, Vec3 pos) static @Nullable BlockPosmovePosUpOutOfSolid(PathfinderMob mob, BlockPos pos)
-
Constructor Details
-
LandRandomPos
public LandRandomPos()
-
-
Method Details
-
getPos
-
getPos
public static @Nullable Vec3 getPos(PathfinderMob mob, int radius, int yRange, ToDoubleFunction<BlockPos> toDoubleFunction) -
getPosTowards
-
getPosAway
-
getPosAway
public static @Nullable Vec3 getPosAway(PathfinderMob mob, double minDistance, double maxDistance, int yRange, Vec3 pos) -
getPosInDirection
private static @Nullable Vec3 getPosInDirection(PathfinderMob mob, double minDistance, double maxDistance, int yRange, Vec3 pos, boolean isRestricted) -
movePosUpOutOfSolid
-
generateRandomPosTowardDirection
public static @Nullable BlockPos generateRandomPosTowardDirection(PathfinderMob mob, double radius, boolean shortCircuit, BlockPos pos)
-