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 level, LivingEntity entity, Node previous, 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 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 start, Node finish) 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 x, int y, int z) Node[]
Path.DebugData.closedSet()
Returns the value of theclosedSet
record component.static Node
Node.createFromStream
(FriendlyByteBuf buffer) protected Node
FlyNodeEvaluator.findAcceptedNode
(int x, int y, int z) protected Node
SwimNodeEvaluator.findAcceptedNode
(int x, int y, int z) protected Node
WalkNodeEvaluator.findAcceptedNode
(int x, int y, int z, int verticalDeltaLimit, double nodeFloorLevel, Direction direction, PathType pathType) Target.getBestNode()
private Node
WalkNodeEvaluator.getBlockedNode
(int x, int y, int z) private Node
WalkNodeEvaluator.getClosedNode
(int x, int y, int z, PathType pathType) Path.getEndNode()
Node[]
BinaryHeap.getHeap()
Path.getNextNode()
protected Node
NodeEvaluator.getNode
(int x, int y, int z) Returns a mapped point or creates and adds oneprotected Node
Path.getNode
(int index) Returns theNode
located at the specified index, usually the current one.private Node
WalkNodeEvaluator.getNodeAndUpdateCostToMax
(int x, int y, int z, PathType pathType, float malus) Path.getPreviousNode()
AmphibiousNodeEvaluator.getStart()
FlyNodeEvaluator.getStart()
abstract Node
NodeEvaluator.getStart()
SwimNodeEvaluator.getStart()
WalkNodeEvaluator.getStart()
protected Node
WalkNodeEvaluator.getStartNode
(BlockPos pos) 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 buffer) private Node
WalkNodeEvaluator.tryFindFirstGroundNodeBelow
(int x, int y, int z) private Node
WalkNodeEvaluator.tryFindFirstNonWaterBelow
(int x, int y, int z, Node node) private Node
WalkNodeEvaluator.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 boolean
WalkNodeEvaluator.canReachWithoutCollision
(Node node) void
BinaryHeap.changeCost
(Node point, float cost) Changes the provided point's total cost if costIn is smallerprotected float
float
Node.distanceManhattan
(Node point) float
Node.distanceTo
(Node point) Returns the linear distance to another path pointfloat
Node.distanceToSqr
(Node point) Returns the squared distance to another path pointfloat
Node.distanceToXZ
(Node point) private Path
PathFinder.findPath
(ProfilerFiller profiler, Node p_node, Map<Target, BlockPos> targetPos, float maxRange, int accuracy, float searchDepthMultiplier) private float
int
AmphibiousNodeEvaluator.getNeighbors
(Node[] outputArray, Node p_node) int
FlyNodeEvaluator.getNeighbors
(Node[] outputArray, Node p_node) abstract int
NodeEvaluator.getNeighbors
(Node[] outputArray, Node node) int
SwimNodeEvaluator.getNeighbors
(Node[] outputArray, Node p_node) int
WalkNodeEvaluator.getNeighbors
(Node[] outputArray, Node p_node) private boolean
private static boolean
Adds a point to the pathprotected boolean
WalkNodeEvaluator.isDiagonalValid
(Node node) protected boolean
WalkNodeEvaluator.isDiagonalValid
(Node root, Node xNode, Node zNode) protected boolean
WalkNodeEvaluator.isNeighborValid
(Node neighbor, Node node) protected boolean
SwimNodeEvaluator.isNodeValid
(Node node) private boolean
private boolean
AmphibiousNodeEvaluator.isVerticalNeighborValid
(Node neighbor, Node node) protected static void
Node.readContents
(FriendlyByteBuf buffer, Node node) private Path
PathFinder.reconstructPath
(Node point, BlockPos targetPos, boolean reachesTarget) Converts a recursive path point structure into a pathvoid
void
Path.replaceNode
(int index, Node point) (package private) void
private Node
WalkNodeEvaluator.tryFindFirstNonWaterBelow
(int x, int y, int z, Node node) void
Target.updateBest
(float heuristic, Node node) (package private) static void
Path.writeNodeArray
(FriendlyByteBuf buffer, Node[] nodeArray) 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