Class PNode
java.lang.Object
net.minestom.server.entity.pathfinding.PNode
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionPNode
(double px, double py, double pz, double g, double h, @NotNull PNode.NodeType type, @Nullable PNode parent) PNode
(Point point, double g, double h, PNode.NodeType 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
(@NotNull PNode.NodeType 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 @NotNull PNode.NodeType type, @Nullable @Nullable PNode parent) -
PNode
public PNode(Point point, double g, double h, PNode.NodeType walk, @Nullable @Nullable PNode parent)
-
-
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
-