Class LandRandomPos
java.lang.Object
net.minecraft.world.entity.ai.util.LandRandomPos
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BlockPosgenerateRandomPosTowardDirection(PathfinderMob pMob, int pRadius, boolean pShortCircuit, BlockPos pPos) static Vec3getPos(PathfinderMob pMob, int pRadius, int pVerticalRange) static Vec3getPos(PathfinderMob pMob, int pRadius, int pYRange, ToDoubleFunction<BlockPos> pToDoubleFunction) static Vec3getPosAway(PathfinderMob pMob, int pRadius, int pYRange, Vec3 pVectorPosition) private static Vec3getPosInDirection(PathfinderMob pMob, int pRadius, int pYRange, Vec3 pVectorPosition, boolean pShortCircuit) static Vec3getPosTowards(PathfinderMob pMob, int pRadius, int pYRange, Vec3 pVectorPosition) static BlockPosmovePosUpOutOfSolid(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)
-