java.lang.Object
net.minecraft.world.level.pathfinder.Node
Direct Known Subclasses:
Target

public class Node extends Object
  • Field Details

    • x

      public final int x
    • y

      public final int y
    • z

      public final int z
    • hash

      private final int hash
    • heapIdx

      public int heapIdx
    • g

      public float g
    • h

      public float h
    • f

      public float f
    • cameFrom

      @Nullable public Node cameFrom
    • closed

      public boolean closed
    • walkedDistance

      public float walkedDistance
    • costMalus

      public float costMalus
    • type

      public BlockPathTypes type
  • Constructor Details

    • Node

      public Node(int p_77285_, int p_77286_, int p_77287_)
  • Method Details

    • cloneAndMove

      public Node cloneAndMove(int p_77290_, int p_77291_, int p_77292_)
    • createHash

      public static int createHash(int p_77296_, int p_77297_, int p_77298_)
    • distanceTo

      public float distanceTo(Node p_77294_)
    • distanceToXZ

      public float distanceToXZ(Node p_230614_)
    • distanceTo

      public float distanceTo(BlockPos p_164698_)
    • distanceToSqr

      public float distanceToSqr(Node p_77300_)
    • distanceToSqr

      public float distanceToSqr(BlockPos p_164703_)
    • distanceManhattan

      public float distanceManhattan(Node p_77305_)
    • distanceManhattan

      public float distanceManhattan(BlockPos p_77307_)
    • asBlockPos

      public BlockPos asBlockPos()
    • asVec3

      public Vec3 asVec3()
    • equals

      public boolean equals(Object p_77309_)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • inOpenSet

      public boolean inOpenSet()
    • toString

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

      public void writeToStream(FriendlyByteBuf p_164700_)
    • createFromStream

      public static Node createFromStream(FriendlyByteBuf p_77302_)
    • readContents

      protected static void readContents(FriendlyByteBuf p_262984_, Node p_263009_)