Class Path

java.lang.Object
net.minecraft.entity.ai.pathing.Path

public class Path
extends Object
  • Field Details

    • nodes

      private final List<PathNode> nodes
    • field_57

      private PathNode[] field_57
    • field_55

      private PathNode[] field_55
    • field_20300

      @Environment(CLIENT) private Set<TargetPathNode> field_20300
    • currentNodeIndex

      private int currentNodeIndex
    • target

      private final BlockPos target
    • manhattanDistanceFromTarget

      private final float manhattanDistanceFromTarget
    • reachesTarget

      private final boolean reachesTarget
  • Constructor Details

  • Method Details

    • next

      public void next()
    • method_30849

      public boolean method_30849()
    • isFinished

      public boolean isFinished()
    • getEnd

      @Nullable public PathNode getEnd()
    • getNode

      public PathNode getNode​(int index)
    • setLength

      public void setLength​(int length)
    • setNode

      public void setNode​(int index, PathNode node)
    • getLength

      public int getLength()
    • getCurrentNodeIndex

      public int getCurrentNodeIndex()
    • setCurrentNodeIndex

      public void setCurrentNodeIndex​(int index)
    • getNodePosition

      public Vec3d getNodePosition​(Entity entity, int index)
    • method_31031

      public BlockPos method_31031​(int int2)
    • getNodePosition

      public Vec3d getNodePosition​(Entity entity)
    • method_31032

      public BlockPos method_31032()
    • method_29301

      public PathNode method_29301()
    • method_30850

      @Nullable public PathNode method_30850()
    • equalsPath

      public boolean equalsPath​(@Nullable Path path)
    • reachesTarget

      public boolean reachesTarget()
    • method_22880

      @Environment(CLIENT) public PathNode[] method_22880()
    • method_22881

      @Environment(CLIENT) public PathNode[] method_22881()
    • fromBuffer

      @Environment(CLIENT) public static Path fromBuffer​(PacketByteBuf buffer)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getTarget

      public BlockPos getTarget()
    • getManhattanDistanceFromTarget

      public float getManhattanDistanceFromTarget()