public final class Point extends Object implements GsonSerializable
| Modifier and Type | Method and Description |
|---|---|
Point |
add(double x,
double y,
double z) |
static Point |
deserialize(com.google.gson.JsonElement element) |
boolean |
equals(Object o) |
Direction |
getDirection() |
Position |
getPosition() |
int |
hashCode() |
static Point |
of(org.bukkit.Location location) |
static Point |
of(Position position,
Direction direction) |
com.google.gson.JsonObject |
serialize()
Serializes the object to JSON
|
Point |
subtract(double x,
double y,
double z) |
org.bukkit.Location |
toLocation() |
String |
toString() |
VectorPoint |
toVectorPoint() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitdeserialize, deserializeRaw, getDeserializeMethodpublic static Point deserialize(com.google.gson.JsonElement element)
public static Point of(org.bukkit.Location location)
public Position getPosition()
public Direction getDirection()
public org.bukkit.Location toLocation()
public VectorPoint toVectorPoint()
public Point add(double x, double y, double z)
public Point subtract(double x, double y, double z)
@Nonnull public com.google.gson.JsonObject serialize()
GsonSerializableserialize in interface GsonSerializableCopyright © 2022. All rights reserved.