Uses of Class
net.minecraft.world.level.pathfinder.Node
Packages that use Node
Package
Description
-
Uses of Node in net.minecraft.world.entity.ai.behavior
Methods in net.minecraft.world.entity.ai.behavior with parameters of type NodeModifier and TypeMethodDescriptionstatic voidInteractWithDoor.closeDoorsThatIHaveOpenedOrPassedThrough(ServerLevel level, LivingEntity entity, @Nullable Node previous, @Nullable Node next, Set<GlobalPos> doorPositions, Optional<List<LivingEntity>> nearestLivingEntities) -
Uses of Node in net.minecraft.world.entity.animal.frog
Methods in net.minecraft.world.entity.animal.frog that return Node -
Uses of Node in net.minecraft.world.entity.boss.enderdragon
Fields in net.minecraft.world.entity.boss.enderdragon declared as NodeMethods in net.minecraft.world.entity.boss.enderdragon with parameters of type NodeModifier and TypeMethodDescription@Nullable PathFind and return a path among the circles described by nodes, ornullif the shortest path would just be directly between the start and finish with no intermediate points.private PathEnderDragon.reconstructPath(Node start, Node finish) Create and return a new Path defining a path from the start to the finish, using the connections already made by the caller, findPath. -
Uses of Node in net.minecraft.world.level.pathfinder
Subclasses of Node in net.minecraft.world.level.pathfinderFields in net.minecraft.world.level.pathfinder declared as NodeModifier and TypeFieldDescriptionprivate NodeTarget.bestNodeThe nearest node of the path that is constructed@Nullable NodeNode.cameFromprivate final Node[]Path.DebugData.closedSetThe field for theclosedSetrecord component.private Node[]BinaryHeap.heapprivate final Node[]PathFinder.neighborsprivate final Node[]Path.DebugData.openSetThe field for theopenSetrecord component.private final Node[]WalkNodeEvaluator.reusableNeighborsFields in net.minecraft.world.level.pathfinder with type parameters of type NodeModifier and TypeFieldDescriptionprotected final it.unimi.dsi.fastutil.ints.Int2ObjectMap<Node> NodeEvaluator.nodesPath.nodesMethods in net.minecraft.world.level.pathfinder that return NodeModifier and TypeMethodDescriptionNode.cloneAndMove(int x, int y, int z) Node[]Path.DebugData.closedSet()Returns the value of theclosedSetrecord component.static NodeNode.createFromStream(FriendlyByteBuf buffer) protected @Nullable NodeFlyNodeEvaluator.findAcceptedNode(int x, int y, int z) protected @Nullable NodeSwimNodeEvaluator.findAcceptedNode(int x, int y, int z) protected @Nullable NodeWalkNodeEvaluator.findAcceptedNode(int x, int y, int z, int verticalDeltaLimit, double nodeFloorLevel, Direction direction, PathType pathType) Target.getBestNode()private NodeWalkNodeEvaluator.getBlockedNode(int x, int y, int z) private NodeWalkNodeEvaluator.getClosedNode(int x, int y, int z, PathType pathType) @Nullable NodePath.getEndNode()Node[]BinaryHeap.getHeap()Path.getNextNode()protected NodeNodeEvaluator.getNode(int x, int y, int z) Returns a mapped point or creates and adds oneprotected NodePath.getNode(int index) Returns theNodelocated at the specified index, usually the current one.private NodeWalkNodeEvaluator.getNodeAndUpdateCostToMax(int x, int y, int z, PathType pathType, float malus) @Nullable NodePath.getPreviousNode()AmphibiousNodeEvaluator.getStart()FlyNodeEvaluator.getStart()abstract NodeNodeEvaluator.getStart()SwimNodeEvaluator.getStart()WalkNodeEvaluator.getStart()protected NodeWalkNodeEvaluator.getStartNode(BlockPos pos) Adds a node to the pathNode[]Path.DebugData.openSet()Returns the value of theopenSetrecord component.BinaryHeap.peek()BinaryHeap.pop()(package private) static Node[]Path.readNodeArray(FriendlyByteBuf buffer) private NodeWalkNodeEvaluator.tryFindFirstGroundNodeBelow(int x, int y, int z) private @Nullable NodeWalkNodeEvaluator.tryFindFirstNonWaterBelow(int x, int y, int z, @Nullable Node node) private @Nullable NodeWalkNodeEvaluator.tryJumpOn(int x, int y, int z, int verticalDeltaLimit, double nodeFloorLevel, Direction direction, PathType pathType, BlockPos.MutableBlockPos pos) Methods in net.minecraft.world.level.pathfinder with parameters of type NodeModifier and TypeMethodDescriptionprivate booleanWalkNodeEvaluator.canReachWithoutCollision(Node node) voidBinaryHeap.changeCost(Node node, float cost) Changes the provided node's total cost if costIn is smallerprotected floatfloatNode.distanceManhattan(Node node) floatNode.distanceTo(Node node) Returns the linear distance to another nodefloatNode.distanceToSqr(Node node) Returns the squared distance to another nodefloatNode.distanceToXZ(Node node) private @Nullable PathPathFinder.findPath(Node node, Map<Target, BlockPos> targets, float maxRange, int reachRange, float maxVisitedNodesMultiplier) Finds a path to one of the specified positions and post-processes it or returnsnullif no path could be found within given reach rangeprivate floatintAmphibiousNodeEvaluator.getNeighbors(Node[] p_164676_, Node p_164677_) intFlyNodeEvaluator.getNeighbors(Node[] p_77266_, Node p_77267_) abstract intNodeEvaluator.getNeighbors(Node[] outputArray, Node node) intSwimNodeEvaluator.getNeighbors(Node[] p_77483_, Node p_77484_) intWalkNodeEvaluator.getNeighbors(Node[] p_77640_, Node p_77641_) private booleanprivate static booleanAdds a node to the pathprotected booleanWalkNodeEvaluator.isDiagonalValid(@Nullable Node node) protected booleanWalkNodeEvaluator.isDiagonalValid(Node root, @Nullable Node xNode, @Nullable Node zNode) protected booleanWalkNodeEvaluator.isNeighborValid(@Nullable Node neighbor, Node node) protected booleanSwimNodeEvaluator.isNodeValid(@Nullable Node node) private booleanprivate booleanAmphibiousNodeEvaluator.isVerticalNeighborValid(@Nullable Node neighbor, Node node) protected static voidNode.readContents(FriendlyByteBuf buffer, Node node) private PathPathFinder.reconstructPath(Node node, BlockPos targetPos, boolean reachesTarget) Converts a recursive node structure into a pathvoidvoidPath.replaceNode(int index, Node node) (package private) voidprivate @Nullable NodeWalkNodeEvaluator.tryFindFirstNonWaterBelow(int x, int y, int z, @Nullable Node node) voidTarget.updateBest(float heuristic, Node node) (package private) static voidPath.writeNodeArray(FriendlyByteBuf buffer, Node[] nodeArray) Constructors in net.minecraft.world.level.pathfinder with parameters of type NodeModifierConstructorDescriptionCreates an instance of aDebugDatarecord class.Constructor parameters in net.minecraft.world.level.pathfinder with type arguments of type Node