Class PathPoint

java.lang.Object
net.minecraft.pathfinding.PathPoint
Direct Known Subclasses:
FlaggedPathPoint

public class PathPoint 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

      public PathPoint cameFrom
    • closed

      public boolean closed
    • walkedDistance

      public float walkedDistance
    • costMalus

      public float costMalus
    • type

      public PathNodeType type
  • Constructor Details

    • PathPoint

      public PathPoint(int p_i2135_1_, int p_i2135_2_, int p_i2135_3_)
  • Method Details

    • cloneAndMove

      public PathPoint cloneAndMove(int p_186283_1_, int p_186283_2_, int p_186283_3_)
    • createHash

      public static int createHash(int p_75830_0_, int p_75830_1_, int p_75830_2_)
    • distanceTo

      public float distanceTo(PathPoint p_75829_1_)
    • distanceToSqr

      public float distanceToSqr(PathPoint p_75832_1_)
    • distanceManhattan

      public float distanceManhattan(PathPoint p_224757_1_)
    • distanceManhattan

      public float distanceManhattan(BlockPos p_224758_1_)
    • asBlockPos

      public BlockPos asBlockPos()
    • equals

      public boolean equals(Object p_equals_1_)
      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
    • createFromStream

      public static PathPoint createFromStream(PacketBuffer p_186282_0_)