public final class Direction extends Object implements GsonSerializable
| Modifier and Type | Method and Description |
|---|---|
static Direction |
deserialize(com.google.gson.JsonElement element) |
boolean |
equals(Object o) |
static Direction |
from(Location location) |
float |
getPitch() |
float |
getYaw() |
int |
hashCode() |
static Direction |
of(float yaw,
float pitch) |
com.google.gson.JsonObject |
serialize()
Serializes the object to JSON
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitdeserialize, deserializeRaw, getDeserializeMethodpublic static final Direction ZERO
public static Direction deserialize(com.google.gson.JsonElement element)
public static Direction of(float yaw, float pitch)
public float getYaw()
public float getPitch()
@Nonnull public com.google.gson.JsonObject serialize()
GsonSerializableserialize in interface GsonSerializableCopyright © 2020. All rights reserved.