Class LandRandomPos
java.lang.Object
net.minecraft.world.entity.ai.util.LandRandomPos
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable BlockPosgenerateRandomPosTowardDirection(PathfinderMob pMob, double pRadius, boolean pShortCircuit, BlockPos pPos) static @Nullable Vec3getPos(PathfinderMob pMob, int pRadius, int pVerticalRange) static @Nullable Vec3getPos(PathfinderMob pMob, int pRadius, int pYRange, ToDoubleFunction<BlockPos> pToDoubleFunction) static @Nullable Vec3getPosAway(PathfinderMob pMob, double pMinDistance, double pMaxDistance, int pYRange, Vec3 pPos) static @Nullable Vec3getPosAway(PathfinderMob pMob, int pRadius, int pYRange, Vec3 pPos) private static @Nullable Vec3getPosInDirection(PathfinderMob pMob, double pMinDistance, double pMaxDistance, int pYRange, Vec3 pPos, boolean pShortCircuit) static @Nullable Vec3getPosTowards(PathfinderMob pMob, int pRadius, int pYRange, Vec3 pPos) static @Nullable BlockPosmovePosUpOutOfSolid(PathfinderMob pMob, BlockPos pPos)
-
Constructor Details
-
LandRandomPos
public LandRandomPos()
-
-
Method Details
-
getPos
-
getPos
public static @Nullable Vec3 getPos(PathfinderMob pMob, int pRadius, int pYRange, ToDoubleFunction<BlockPos> pToDoubleFunction) -
getPosTowards
-
getPosAway
-
getPosAway
public static @Nullable Vec3 getPosAway(PathfinderMob pMob, double pMinDistance, double pMaxDistance, int pYRange, Vec3 pPos) -
getPosInDirection
private static @Nullable Vec3 getPosInDirection(PathfinderMob pMob, double pMinDistance, double pMaxDistance, int pYRange, Vec3 pPos, boolean pShortCircuit) -
movePosUpOutOfSolid
-
generateRandomPosTowardDirection
public static @Nullable BlockPos generateRandomPosTowardDirection(PathfinderMob pMob, double pRadius, boolean pShortCircuit, BlockPos pPos)
-