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