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