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