net.minecraft.entity.ai.pathing

public final class Path

net.minecraft.world.level.pathfinder.Path
net.minecraft.class_11
net.minecraft.entity.ai.pathing.Path

Field summary

Modifier and TypeField
public static final PacketCodec<io.netty.buffer.ByteBuf, Path>
DEBUG_STREAM_CODEC
field_62922
PACKET_CODEC
private final List<PathNode>
nodes
field_52
nodes
private Path$DebugNodeInfo
debugData
field_45155
debugNodeInfos
private int
nextNodeIndex
field_54
currentNodeIndex
private final BlockPos
target
field_20301
target
private final float
distToTarget
field_20302
manhattanDistanceFromTarget
private final boolean
reached
field_20303
reachesTarget

Constructor summary

ModifierConstructor
public (List<PathNode> nodes, BlockPos target, boolean reachesTarget)

Method summary

Modifier and TypeMethod
public void
advance()
method_44()
next()
public boolean
notStarted()
method_30849()
isStart()
public boolean
isDone()
method_46()
isFinished()
public PathNode
getEndNode()
method_45()
getEnd()
public PathNode
getNode(int i)
method_40(int arg0)
getNode(int index)
public void
truncateNodes(int index)
method_36(int arg0)
setLength(int length)
public void
replaceNode(int index, Node replaceWith)
method_33(int arg0, class_9 arg1)
setNode(int index, PathNode node)
public int
getNodeCount()
method_38()
getLength()
public int
getNextNodeIndex()
method_39()
getCurrentNodeIndex()
public void
setNextNodeIndex(int nextNodeIndex)
method_42(int arg0)
setCurrentNodeIndex(int nodeIndex)
public Vec3d
getEntityPosAtNode(Entity entity, int index)
method_47(class_1297 arg0, int arg1)
getNodePosition(Entity entity, int index)
public BlockPos
getNodePos(int index)
method_31031(int arg0)
getNodePos(int index)
public Vec3d
getNextEntityPos(Entity entity)
method_49(class_1297 arg0)
getNodePosition(Entity entity)
public BlockPos
getNextNodePos()
method_31032()
getCurrentNodePos()
public PathNode
getNextNode()
method_29301()
getCurrentNode()
public PathNode
getPreviousNode()
method_30850()
getLastNode()
public boolean
sameAs(Path path)
method_41(class_11 arg0)
equalsPath(Path path)
public boolean
canReach()
method_21655()
reachesTarget()
void
setDebug(List<Node> openSet, List<Node> closedSet, Set<Target> targets)
method_35500(List<class_9> arg0, List<class_9> arg1, Set<class_4459> arg2)
setDebugInfo(List<PathNode> arg0, List<PathNode> arg1, Set<TargetPathNode> debugTargetNodes)
public Path$DebugNodeInfo
debugData()
method_52604()
getDebugNodeInfos()
public BlockPos
getTarget()
method_48()
getTarget()
public float
getDistToTarget()
method_21656()
getManhattanDistanceFromTarget()
public Path
copy()
method_52605()
copy()
private static Path
lambda$static$5(Boolean arg0, Integer arg1, BlockPos arg2, List arg3, Path$DebugData arg4)
method_1_9047(Boolean arg0, Integer arg1, class_2338 arg2, List arg3, class_11$class_8644 arg4)
method_1_9047(Boolean arg0, Integer arg1, BlockPos arg2, List arg3, Path$DebugNodeInfo arg4)
private static Path$DebugNodeInfo
lambda$static$4(Path arg0)
method_1_9046(class_11 arg0)
method_1_9046(Path arg0)
private static List
lambda$static$3(Path arg0)
method_1_9045(class_11 arg0)
method_1_9045(Path arg0)
private static BlockPos
lambda$static$2(Path arg0)
method_1_9044(class_11 arg0)
method_1_9044(Path arg0)
private static Integer
lambda$static$1(Path arg0)
method_1_9043(class_11 arg0)
method_1_9043(Path arg0)
private static Boolean
lambda$static$0(Path arg0)
method_1_9042(class_11 arg0)
method_1_9042(Path arg0)