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 void
InteractWithDoor.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 Path
EnderDragon.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 Node
Target.bestNode
The nearest path point of the path that is constructedNode.cameFrom
private final Node[]
Path.DebugData.closedSet
The field for theclosedSet
record component.private Node[]
BinaryHeap.heap
private final Node[]
PathFinder.neighbors
private final Node[]
Path.DebugData.openSet
The field for theopenSet
record component.private final Node[]
WalkNodeEvaluator.reusableNeighbors
Fields in net.minecraft.world.level.pathfinder with type parameters of type NodeModifier and TypeFieldDescriptionprotected final it.unimi.dsi.fastutil.ints.Int2ObjectMap
<Node> NodeEvaluator.nodes
Path.nodes
Methods 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 theclosedSet
record component.static Node
Node.createFromStream
(FriendlyByteBuf pBuffer) protected Node
FlyNodeEvaluator.findAcceptedNode
(int pX, int pY, int pZ) protected Node
SwimNodeEvaluator.findAcceptedNode
(int pX, int pY, int pZ) protected Node
WalkNodeEvaluator.findAcceptedNode
(int pX, int pY, int pZ, int pVerticalDeltaLimit, double pNodeFloorLevel, Direction pDirection, PathType pPathType) Target.getBestNode()
private Node
WalkNodeEvaluator.getBlockedNode
(int pX, int pY, int pZ) private Node
WalkNodeEvaluator.getClosedNode
(int pX, int pY, int pZ, PathType pPathType) Path.getEndNode()
Node[]
BinaryHeap.getHeap()
Path.getNextNode()
protected Node
NodeEvaluator.getNode
(int pX, int pY, int pZ) Returns a mapped point or creates and adds oneprotected Node
Path.getNode
(int pIndex) Returns theNode
located at the specified index, usually the current one.private Node
WalkNodeEvaluator.getNodeAndUpdateCostToMax
(int pX, int pY, int pZ, PathType pPathType, float pMalus) Path.getPreviousNode()
AmphibiousNodeEvaluator.getStart()
FlyNodeEvaluator.getStart()
abstract Node
NodeEvaluator.getStart()
SwimNodeEvaluator.getStart()
WalkNodeEvaluator.getStart()
protected Node
WalkNodeEvaluator.getStartNode
(BlockPos pPos) Adds a point to the pathNode[]
Path.DebugData.openSet()
Returns the value of theopenSet
record component.BinaryHeap.peek()
BinaryHeap.pop()
(package private) static Node[]
Path.readNodeArray
(FriendlyByteBuf pBuffer) private Node
WalkNodeEvaluator.tryFindFirstGroundNodeBelow
(int pX, int pY, int pZ) private Node
WalkNodeEvaluator.tryFindFirstNonWaterBelow
(int pX, int pY, int pZ, Node pNode) private Node
WalkNodeEvaluator.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 boolean
WalkNodeEvaluator.canReachWithoutCollision
(Node pNode) void
BinaryHeap.changeCost
(Node pPoint, float pCost) Changes the provided point's total cost if costIn is smallerprotected float
float
Node.distanceManhattan
(Node pPoint) float
Node.distanceTo
(Node pPoint) Returns the linear distance to another path pointfloat
Node.distanceToSqr
(Node pPoint) Returns the squared distance to another path pointfloat
Node.distanceToXZ
(Node pPoint) private Path
PathFinder.findPath
(ProfilerFiller pProfiler, Node pNode, Map<Target, BlockPos> pTargetPos, float pMaxRange, int pAccuracy, float pSearchDepthMultiplier) private float
int
AmphibiousNodeEvaluator.getNeighbors
(Node[] pOutputArray, Node pNode) int
FlyNodeEvaluator.getNeighbors
(Node[] pOutputArray, Node pNode) abstract int
NodeEvaluator.getNeighbors
(Node[] pOutputArray, Node pNode) int
SwimNodeEvaluator.getNeighbors
(Node[] pOutputArray, Node pNode) int
WalkNodeEvaluator.getNeighbors
(Node[] pOutputArray, Node pNode) private boolean
private static boolean
Adds a point to the pathprotected boolean
WalkNodeEvaluator.isDiagonalValid
(Node pNode) protected boolean
WalkNodeEvaluator.isDiagonalValid
(Node pRoot, Node pXNode, Node pZNode) protected boolean
WalkNodeEvaluator.isNeighborValid
(Node pNeighbor, Node pNode) protected boolean
SwimNodeEvaluator.isNodeValid
(Node pNode) private boolean
private boolean
AmphibiousNodeEvaluator.isVerticalNeighborValid
(Node pNeighbor, Node pNode) protected static void
Node.readContents
(FriendlyByteBuf pBuffer, Node pNode) private Path
PathFinder.reconstructPath
(Node pPoint, BlockPos pTargetPos, boolean pReachesTarget) Converts a recursive path point structure into a pathvoid
void
Path.replaceNode
(int pIndex, Node pPoint) (package private) void
private Node
WalkNodeEvaluator.tryFindFirstNonWaterBelow
(int pX, int pY, int pZ, Node pNode) void
Target.updateBest
(float pHeuristic, Node pNode) (package private) static void
Path.writeNodeArray
(FriendlyByteBuf pBuffer, Node[] pNodeArray) Constructors in net.minecraft.world.level.pathfinder with parameters of type NodeModifierConstructorDescriptionCreates an instance of aDebugData
record class.Constructor parameters in net.minecraft.world.level.pathfinder with type arguments of type Node