类 LandRandomPos
java.lang.Object
net.minecraft.world.entity.ai.util.LandRandomPos
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static 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)
-
构造器详细资料
-
LandRandomPos
public LandRandomPos()
-
-
方法详细资料
-
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)
-