@Environment(value=CLIENT) public static class Transformation.Deserializer extends Object implements JsonDeserializer<Transformation>
Modifier and Type | Field and Description |
---|---|
private static Vector3f |
DEFAULT_ROTATION |
private static Vector3f |
DEFAULT_SCALE |
private static Vector3f |
DEFAULT_TRANSLATION |
Modifier | Constructor and Description |
---|---|
protected |
Deserializer() |
Modifier and Type | Method and Description |
---|---|
Transformation |
deserialize(JsonElement jsonElement,
Type type,
JsonDeserializationContext jsonDeserializationContext) |
private Vector3f |
parseVector3f(JsonObject json,
String key,
Vector3f fallback) |
private static final Vector3f DEFAULT_ROTATION
private static final Vector3f DEFAULT_TRANSLATION
private static final Vector3f DEFAULT_SCALE
public Transformation deserialize(JsonElement jsonElement, Type type, JsonDeserializationContext jsonDeserializationContext) throws JsonParseException
deserialize
in interface JsonDeserializer<Transformation>
JsonParseException
private Vector3f parseVector3f(JsonObject json, String key, Vector3f fallback)