类的使用
net.minecraft.entity.ai.pathing.PathNode
-
使用PathNode的程序包 程序包 说明 net.minecraft.entity.ai.brain.task net.minecraft.entity.ai.pathing net.minecraft.entity.boss.dragon -
-
net.minecraft.entity.ai.brain.task中PathNode的使用
声明为PathNode的net.minecraft.entity.ai.brain.task中的字段 修饰符和类型 字段 说明 private @Nullable PathNodeOpenDoorsTask. field_26387参数类型为PathNode的net.minecraft.entity.ai.brain.task中的方法 修饰符和类型 方法 说明 static voidOpenDoorsTask. method_30760(ServerWorld serverWorld, LivingEntity livingEntity, @Nullable PathNode pathNode, @Nullable PathNode pathNode2) -
net.minecraft.entity.ai.pathing中PathNode的使用
net.minecraft.entity.ai.pathing中PathNode的子类 修饰符和类型 类 说明 classTargetPathNode声明为PathNode的net.minecraft.entity.ai.pathing中的字段 修饰符和类型 字段 说明 private PathNode[]Path. field_55private PathNode[]Path. field_57private PathNodeTargetPathNode. nearestNodeprivate PathNode[]PathMinHeap. pathNodesPathNodePathNode. previousprivate PathNode[]PathNodeNavigator. successors类型参数类型为PathNode的net.minecraft.entity.ai.pathing中的字段 修饰符和类型 字段 说明 private List<PathNode>Path. nodesprotected Int2ObjectMap<PathNode>PathNodeMaker. pathNodeCache返回PathNode的net.minecraft.entity.ai.pathing中的方法 修饰符和类型 方法 说明 PathNodePathNode. copyWithNewPosition(int x, int y, int z)PathNodePath. getCurrentNode()@Nullable PathNodePath. getEnd()PathNodePathMinHeap. getFirstNode()PathNodeTargetPathNode. getNearestNode()protected @Nullable PathNodeBirdPathNodeMaker. getNode(int x, int y, int z)PathNodePath. getNode(int index)protected PathNodePathNodeMaker. getNode(int x, int y, int z)protected PathNodePathNodeMaker. getNode(BlockPos pos)protected @Nullable PathNodeWaterPathNodeMaker. getNode(int x, int y, int z)private @Nullable PathNodeAmphibiousPathNodeMaker. getPathNode(int x, int y, int z, int maxYStep, double prevFeetY)private @Nullable PathNodeLandPathNodeMaker. getPathNode(int x, int y, int z, int maxYStep, double prevFeetY, Direction direction, PathNodeType pathNodeType)private @Nullable PathNodeWaterPathNodeMaker. getPathNodeInWater(int x, int y, int z)PathNodeAmphibiousPathNodeMaker. getStart()PathNodeBirdPathNodeMaker. getStart()PathNodeLandPathNodeMaker. getStart()abstract PathNodePathNodeMaker. getStart()PathNodeWaterPathNodeMaker. getStart()PathNode[]Path. method_22880()PathNode[]Path. method_22881()@Nullable PathNodePath. method_30850()PathNode[]PathMinHeap. method_35493()PathNodePathMinHeap. pop()PathNodePathMinHeap. push(PathNode node)static PathNodePathNode. readBuf(PacketByteBuf buf)参数类型为PathNode的net.minecraft.entity.ai.pathing中的方法 修饰符和类型 方法 说明 private floatPathNodeNavigator. calculateDistances(PathNode node, Set<TargetPathNode> targets)private PathPathNodeNavigator. createPath(PathNode endNode, BlockPos target, boolean reachesTarget)private @Nullable PathPathNodeNavigator. findPathToAny(PathNode startNode, Map<TargetPathNode,BlockPos> positions, float followRange, int distance, float rangeMultiplier)floatPathNode. getDistance(PathNode node)floatPathNode. getManhattanDistance(PathNode node)floatPathNode. getSquaredDistance(PathNode node)intAmphibiousPathNodeMaker. getSuccessors(PathNode[] successors, PathNode node)intBirdPathNodeMaker. getSuccessors(PathNode[] successors, PathNode node)intLandPathNodeMaker. getSuccessors(PathNode[] successors, PathNode node)abstract intPathNodeMaker. getSuccessors(PathNode[] successors, PathNode node)intWaterPathNodeMaker. getSuccessors(PathNode[] successors, PathNode node)private booleanBirdPathNodeMaker. isPassable(@Nullable PathNode node)private booleanLandPathNodeMaker. isValidDiagonalSuccessor(PathNode node, PathNode successor1)private booleanLandPathNodeMaker. method_29578(PathNode pathNode)private booleanLandPathNodeMaker. method_29579(PathNode pathNode, @Nullable PathNode pathNode2, @Nullable PathNode pathNode3, @Nullable PathNode pathNode4)voidPathMinHeap. method_35491(PathNode pathNode)(专用程序包) voidPath. method_35500(PathNode[] pathNode, PathNode[] pathNode2, Set<TargetPathNode> set)PathNodePathMinHeap. push(PathNode node)voidPath. setNode(int index, PathNode node)voidPathMinHeap. setNodeWeight(PathNode node, float weight)private booleanBirdPathNodeMaker. unvisited(@Nullable PathNode node)voidTargetPathNode. updateNearestNode(float distance, PathNode node)参数类型为PathNode的net.minecraft.entity.ai.pathing中的构造器 构造器 说明 TargetPathNode(PathNode node)类型变量类型为PathNode的net.minecraft.entity.ai.pathing中的构造器参数 构造器 说明 Path(List<PathNode> nodes, BlockPos target, boolean reachesTarget) -
net.minecraft.entity.boss.dragon中PathNode的使用
声明为PathNode的net.minecraft.entity.boss.dragon中的字段 修饰符和类型 字段 说明 private PathNode[]EnderDragonEntity. pathNodesThe first 12 path nodes are used for end crystals; the others are not tied to them.参数类型为PathNode的net.minecraft.entity.boss.dragon中的方法 修饰符和类型 方法 说明 @Nullable PathEnderDragonEntity. findPath(int from, int to, @Nullable PathNode pathNode)private PathEnderDragonEntity. getPathOfAllPredecessors(PathNode unused, PathNode node)
-