java.lang.Object
net.minestom.server.entity.pathfinding.PNode

public class PNode extends Object
  • Constructor Details

    • PNode

      public PNode(double px, double py, double pz, double g, double h, @Nullable @Nullable PNode parent)
    • PNode

      public PNode(double px, double py, double pz, double g, double h, @NotNull PNode.Type type, @Nullable @Nullable PNode parent)
    • PNode

      public PNode(Point point, double g, double h, PNode.Type walk, @Nullable @Nullable PNode parent)
  • Method Details

    • hashCode

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

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

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

      @Internal public double x()
    • y

      @Internal public double y()
    • z

      @Internal public double z()
    • blockX

      public int blockX()
    • blockY

      public int blockY()
    • blockZ

      public int blockZ()
    • g

      @Internal public double g()
    • h

      @Internal public double h()
    • setG

      @Internal public void setG(double v)
    • setH

      @Internal public void setH(double heuristic)
    • setType

      @Internal public void setType(@NotNull PNode.Type newType)
    • setPoint

      @Internal public void setPoint(double px, double py, double pz)
    • parent

      @Internal @Nullable public @Nullable PNode parent()
    • setParent

      @Internal public void setParent(@Nullable @Nullable PNode current)