@Environment(value=CLIENT) public static class ModelElement.Deserializer extends Object implements JsonDeserializer<ModelElement>
Modifier | Constructor and Description |
---|---|
protected |
Deserializer() |
Modifier and Type | Method and Description |
---|---|
ModelElement |
deserialize(JsonElement jsonElement,
Type type,
JsonDeserializationContext jsonDeserializationContext) |
private Direction.Axis |
deserializeAxis(JsonObject object) |
private Map<Direction,ModelElementFace> |
deserializeFaces(JsonDeserializationContext context,
JsonObject object) |
private Map<Direction,ModelElementFace> |
deserializeFacesValidating(JsonDeserializationContext context,
JsonObject object) |
private Vector3f |
deserializeFrom(JsonObject object) |
private ModelRotation |
deserializeRotation(JsonObject object) |
private float |
deserializeRotationAngle(JsonObject object) |
private Vector3f |
deserializeTo(JsonObject object) |
private Vector3f |
deserializeVec3f(JsonObject object,
String name) |
private Direction |
getDirection(String name) |
public ModelElement deserialize(JsonElement jsonElement, Type type, JsonDeserializationContext jsonDeserializationContext) throws JsonParseException
deserialize
in interface JsonDeserializer<ModelElement>
JsonParseException
@Nullable private ModelRotation deserializeRotation(JsonObject object)
private float deserializeRotationAngle(JsonObject object)
private Direction.Axis deserializeAxis(JsonObject object)
private Map<Direction,ModelElementFace> deserializeFacesValidating(JsonDeserializationContext context, JsonObject object)
private Map<Direction,ModelElementFace> deserializeFaces(JsonDeserializationContext context, JsonObject object)
private Vector3f deserializeTo(JsonObject object)
private Vector3f deserializeFrom(JsonObject object)
private Vector3f deserializeVec3f(JsonObject object, String name)