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 pLevel, LivingEntity pEntity, Node pPrevious, Node pNext, Set<GlobalPos> pDoorPositions, Optional<List<LivingEntity>> pNearestLivingEntities) -
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 TypeMethodDescriptionFind and return a path among the circles described by pathPoints, or null if the shortest path would just be directly between the start and finish with no intermediate points.private PathEnderDragon.reconstructPath(Node pStart, Node pFinish) Create and return a new PathEntity 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 path point of the path that is constructedNode.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 pX, int pY, int pZ) Node[]Path.DebugData.closedSet()Returns the value of theclosedSetrecord component.static NodeNode.createFromStream(FriendlyByteBuf pBuffer) protected NodeFlyNodeEvaluator.findAcceptedNode(int pX, int pY, int pZ) protected NodeSwimNodeEvaluator.findAcceptedNode(int pX, int pY, int pZ) protected NodeWalkNodeEvaluator.findAcceptedNode(int pX, int pY, int pZ, int pVerticalDeltaLimit, double pNodeFloorLevel, Direction pDirection, PathType pPathType) Target.getBestNode()private NodeWalkNodeEvaluator.getBlockedNode(int pX, int pY, int pZ) private NodeWalkNodeEvaluator.getClosedNode(int pX, int pY, int pZ, PathType pPathType) Path.getEndNode()Node[]BinaryHeap.getHeap()Path.getNextNode()protected NodeNodeEvaluator.getNode(int pX, int pY, int pZ) Returns a mapped point or creates and adds oneprotected NodePath.getNode(int pIndex) Returns theNodelocated at the specified index, usually the current one.private NodeWalkNodeEvaluator.getNodeAndUpdateCostToMax(int pX, int pY, int pZ, PathType pPathType, float pMalus) Path.getPreviousNode()AmphibiousNodeEvaluator.getStart()FlyNodeEvaluator.getStart()abstract NodeNodeEvaluator.getStart()SwimNodeEvaluator.getStart()WalkNodeEvaluator.getStart()protected NodeWalkNodeEvaluator.getStartNode(BlockPos pPos) Adds a point to the pathNode[]Path.DebugData.openSet()Returns the value of theopenSetrecord component.BinaryHeap.peek()BinaryHeap.pop()(package private) static Node[]Path.readNodeArray(FriendlyByteBuf pBuffer) private NodeWalkNodeEvaluator.tryFindFirstGroundNodeBelow(int pX, int pY, int pZ) private NodeWalkNodeEvaluator.tryFindFirstNonWaterBelow(int pX, int pY, int pZ, Node pNode) private NodeWalkNodeEvaluator.tryJumpOn(int pX, int pY, int pZ, int pVerticalDeltaLimit, double pNodeFloorLevel, Direction pDirection, PathType pPathType, BlockPos.MutableBlockPos pPos) Methods in net.minecraft.world.level.pathfinder with parameters of type NodeModifier and TypeMethodDescriptionprivate booleanWalkNodeEvaluator.canReachWithoutCollision(Node pNode) voidBinaryHeap.changeCost(Node pPoint, float pCost) Changes the provided point's total cost if costIn is smallerprotected floatfloatNode.distanceManhattan(Node pPoint) floatNode.distanceTo(Node pPoint) Returns the linear distance to another path pointfloatNode.distanceToSqr(Node pPoint) Returns the squared distance to another path pointfloatNode.distanceToXZ(Node pPoint) private PathPathFinder.findPath(Node pNode, Map<Target, BlockPos> pTargetPositions, float pMaxRange, int pAccuracy, float pSearchDepthMultiplier) Finds a path to one of the specified positions and post-processes it or returns null if no path could be found within given accuracyprivate floatintAmphibiousNodeEvaluator.getNeighbors(Node[] p_164676_, Node p_164677_) intFlyNodeEvaluator.getNeighbors(Node[] p_77266_, Node p_77267_) abstract intNodeEvaluator.getNeighbors(Node[] pOutputArray, Node pNode) intSwimNodeEvaluator.getNeighbors(Node[] p_77483_, Node p_77484_) intWalkNodeEvaluator.getNeighbors(Node[] p_77640_, Node p_77641_) private booleanprivate static booleanAdds a point to the pathprotected booleanWalkNodeEvaluator.isDiagonalValid(Node pNode) protected booleanWalkNodeEvaluator.isDiagonalValid(Node pRoot, Node pXNode, Node pZNode) protected booleanWalkNodeEvaluator.isNeighborValid(Node pNeighbor, Node pNode) protected booleanSwimNodeEvaluator.isNodeValid(Node pNode) private booleanprivate booleanAmphibiousNodeEvaluator.isVerticalNeighborValid(Node pNeighbor, Node pNode) protected static voidNode.readContents(FriendlyByteBuf pBuffer, Node pNode) private PathPathFinder.reconstructPath(Node pPoint, BlockPos pTargetPos, boolean pReachesTarget) Converts a recursive path point structure into a pathvoidvoidPath.replaceNode(int pIndex, Node pPoint) (package private) voidprivate NodeWalkNodeEvaluator.tryFindFirstNonWaterBelow(int pX, int pY, int pZ, Node pNode) voidTarget.updateBest(float pHeuristic, Node pNode) (package private) static voidPath.writeNodeArray(FriendlyByteBuf pBuffer, Node[] pNodeArray) 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