Package net.minecraft.entity.ai.pathing
Class Path
java.lang.Object
net.minecraft.entity.ai.pathing.Path
public class Path extends Object
-
Field Summary
Fields Modifier and Type Field Description private intcurrentNodeIndexprivate Set<TargetPathNode>field_20300private PathNode[]field_55private PathNode[]field_57private floatmanhattanDistanceFromTargetprivate List<PathNode>nodesprivate booleanreachesTargetprivate BlockPostarget -
Constructor Summary
-
Method Summary
Modifier and Type Method Description booleanequalsPath(Path path)static PathfromBuffer(PacketByteBuf buffer)intgetCurrentNodeIndex()PathNodegetEnd()intgetLength()floatgetManhattanDistanceFromTarget()PathNodegetNode(int index)Vec3dgetNodePosition(Entity entity)Vec3dgetNodePosition(Entity entity, int index)BlockPosgetTarget()booleanisFinished()PathNode[]method_22880()PathNode[]method_22881()PathNodemethod_29301()booleanmethod_30849()PathNodemethod_30850()BlockPosmethod_31031(int int2)BlockPosmethod_31032()voidnext()booleanreachesTarget()voidsetCurrentNodeIndex(int index)voidsetLength(int length)voidsetNode(int index, PathNode node)StringtoString()
-
Field Details
-
nodes
-
field_57
-
field_55
-
field_20300
-
currentNodeIndex
private int currentNodeIndex -
target
-
manhattanDistanceFromTarget
private final float manhattanDistanceFromTarget -
reachesTarget
private final boolean reachesTarget
-
-
Constructor Details
-
Path
-
-
Method Details
-
next
public void next() -
method_30849
public boolean method_30849() -
isFinished
public boolean isFinished() -
getEnd
-
getNode
-
setLength
public void setLength(int length) -
setNode
-
getLength
public int getLength() -
getCurrentNodeIndex
public int getCurrentNodeIndex() -
setCurrentNodeIndex
public void setCurrentNodeIndex(int index) -
getNodePosition
-
method_31031
-
getNodePosition
-
method_31032
-
method_29301
-
method_30850
-
equalsPath
-
reachesTarget
public boolean reachesTarget() -
method_22880
-
method_22881
-
fromBuffer
-
toString
-
getTarget
-
getManhattanDistanceFromTarget
public float getManhattanDistanceFromTarget()
-