public class PathVector extends Object implements Comparable<PathVector>
| Constructor and Description |
|---|
PathVector(double cost,
org.bukkit.util.Vector vector)
Creates a new PathVector object.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(@NotNull PathVector vector)
Compares this
PathVector to another. |
double |
getCost()
Gets the cost of this
PathVector. |
org.bukkit.util.Vector |
getVector()
Gets the
Vector of this PathVector. |
public PathVector(double cost,
org.bukkit.util.Vector vector)
cost - The cost of this PathVector as determined during calculation.vector - The vector of this PathVector.public double getCost()
PathVector.public org.bukkit.util.Vector getVector()
Vector of this PathVector.Vector.public int compareTo(@NotNull
@NotNull PathVector vector)
PathVector to another. This is based on cost.compareTo in interface Comparable<PathVector>vector - The PathVector we're comparing this one to.Copyright © 2021. All rights reserved.