Class PathPoint

  • Direct Known Subclasses:
    FlaggedPathPoint

    public class PathPoint
    extends java.lang.Object
    • Field Detail

      • 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
      • closed

        public boolean closed
      • walkedDistance

        public float walkedDistance
      • costMalus

        public float costMalus
    • Constructor Detail

      • PathPoint

        public PathPoint​(int p_i2135_1_,
                         int p_i2135_2_,
                         int p_i2135_3_)
    • Method Detail

      • 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​(java.lang.Object p_equals_1_)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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

        public boolean inOpenSet()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object