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 pNode)
    • Target

      public Target(int pX, int pY, int pZ)
  • Method Details

    • updateBest

      public void updateBest(float pHeuristic, Node pNode)
    • getBestNode

      public Node getBestNode()
    • setReached

      public void setReached()
    • isReached

      public boolean isReached()
    • createFromStream

      public static Target createFromStream(FriendlyByteBuf pBuffer)