Class LandRandomPos
java.lang.Object
net.minecraft.world.entity.ai.util.LandRandomPos
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenerateRandomPosTowardDirection(PathfinderMob mob, double horizontalDist, boolean restrict, BlockPos direction) getPos(PathfinderMob mob, int horizontalDist, int verticalDist) getPos(PathfinderMob mob, int horizontalDist, int verticalDist, ToDoubleFunction<BlockPos> positionWeight) getPosAway(PathfinderMob mob, double minHorizontalDist, double maxHorizontalDist, int verticalDist, Vec3 avoidPos) getPosAway(PathfinderMob mob, int horizontalDist, int verticalDist, Vec3 avoidPos) getPosInDirection(PathfinderMob mob, double minHorizontalDist, double maxHorizontalDist, int verticalDist, Vec3 dir, boolean restrict) getPosTowards(PathfinderMob mob, int horizontalDist, int verticalDist, Vec3 towardsPos) movePosUpOutOfSolid(PathfinderMob mob, BlockPos pos)
-
Constructor Details
-
LandRandomPos
public LandRandomPos()
-
-
Method Details
-
getPos
-
getPos
public static @Nullable Vec3 getPos(PathfinderMob mob, int horizontalDist, int verticalDist, ToDoubleFunction<BlockPos> positionWeight) -
getPosTowards
public static @Nullable Vec3 getPosTowards(PathfinderMob mob, int horizontalDist, int verticalDist, Vec3 towardsPos) -
getPosAway
public static @Nullable Vec3 getPosAway(PathfinderMob mob, int horizontalDist, int verticalDist, Vec3 avoidPos) -
getPosAway
public static @Nullable Vec3 getPosAway(PathfinderMob mob, double minHorizontalDist, double maxHorizontalDist, int verticalDist, Vec3 avoidPos) -
getPosInDirection
private static @Nullable Vec3 getPosInDirection(PathfinderMob mob, double minHorizontalDist, double maxHorizontalDist, int verticalDist, Vec3 dir, boolean restrict) -
movePosUpOutOfSolid
-
generateRandomPosTowardDirection
public static @Nullable BlockPos generateRandomPosTowardDirection(PathfinderMob mob, double horizontalDist, boolean restrict, BlockPos direction)
-