Class PNode
java.lang.Object
net.minestom.server.entity.pathfinding.PNode
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionPNode
(double px, double py, double pz, double g, double h, PNode.Type type, @Nullable PNode parent) PNode
(Point point, double g, double h, PNode.Type walk, @Nullable PNode parent) -
Method Summary
Modifier and TypeMethodDescriptionint
blockX()
int
blockY()
int
blockZ()
boolean
double
g()
double
h()
int
hashCode()
@Nullable PNode
parent()
void
setG
(double v) void
setH
(double heuristic) void
void
setPoint
(double px, double py, double pz) void
setType
(PNode.Type newType) toString()
double
x()
double
y()
double
z()
-
Constructor Details
-
PNode
-
PNode
public PNode(double px, double py, double pz, double g, double h, @NotNull PNode.Type type, @Nullable @Nullable PNode parent) -
PNode
-
-
Method Details
-
hashCode
public int hashCode() -
equals
-
toString
-
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
-
setPoint
@Internal public void setPoint(double px, double py, double pz) -
parent
-
setParent
-