Class Target

java.lang.Object
net.minecraft.world.level.pathfinder.Node
net.minecraft.world.level.pathfinder.Target

public class Target extends Node
  • Field Details

    • bestHeuristic

      private float bestHeuristic
    • bestNode

      private Node bestNode
      The nearest path point of the path that is constructed
    • reached

      private boolean reached
  • Constructor Details

    • Target

      public Target(Node node)
    • Target

      public Target(int x, int y, int z)
  • Method Details

    • updateBest

      public void updateBest(float heuristic, Node node)
    • getBestNode

      public Node getBestNode()
    • setReached

      public void setReached()
    • isReached

      public boolean isReached()
    • createFromStream

      public static Target createFromStream(FriendlyByteBuf buffer)