Package net.minecraftforge.common.model
Class TransformationHelper.Deserializer
java.lang.Object
net.minecraftforge.common.model.TransformationHelper.Deserializer
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<Transformation>
- Enclosing class:
- TransformationHelper
public static class TransformationHelper.Deserializer
extends Object
implements com.google.gson.JsonDeserializer<Transformation>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context)static QuaternionparseAxisRotation(com.google.gson.JsonElement e)static float[]parseFloatArray(com.google.gson.JsonElement e, int length, String prefix)static Matrix4fparseMatrix(com.google.gson.JsonElement e)private static Vector3fparseOrigin(com.google.gson.JsonObject obj)static QuaternionparseRotation(com.google.gson.JsonElement e)
-
Field Details
-
ORIGIN_CORNER
-
ORIGIN_OPPOSING_CORNER
-
ORIGIN_CENTER
-
-
Constructor Details
-
Deserializer
public Deserializer()
-
-
Method Details
-
deserialize
public Transformation deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException- Specified by:
deserializein interfacecom.google.gson.JsonDeserializer<Transformation>- Throws:
com.google.gson.JsonParseException
-
parseOrigin
-
parseMatrix
-
parseFloatArray
-
parseAxisRotation
-
parseRotation
-