Package net.minecraftforge.common.model
Class TransformationHelper.Deserializer
- java.lang.Object
-
- net.minecraftforge.common.model.TransformationHelper.Deserializer
-
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<TransformationMatrix>
- Enclosing class:
- TransformationHelper
public static class TransformationHelper.Deserializer extends java.lang.Object implements com.google.gson.JsonDeserializer<TransformationMatrix>
-
-
Field Summary
Fields Modifier and Type Field Description private static Vector3f
ORIGIN_CENTER
private static Vector3f
ORIGIN_CORNER
private static Vector3f
ORIGIN_OPPOSING_CORNER
-
Constructor Summary
Constructors Constructor Description Deserializer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TransformationMatrix
deserialize(com.google.gson.JsonElement json, java.lang.reflect.Type typeOfT, com.google.gson.JsonDeserializationContext context)
static Quaternion
parseAxisRotation(com.google.gson.JsonElement e)
static float[]
parseFloatArray(com.google.gson.JsonElement e, int length, java.lang.String prefix)
static Matrix4f
parseMatrix(com.google.gson.JsonElement e)
private static Vector3f
parseOrigin(com.google.gson.JsonObject obj)
static Quaternion
parseRotation(com.google.gson.JsonElement e)
-
-
-
Method Detail
-
deserialize
public TransformationMatrix deserialize(com.google.gson.JsonElement json, java.lang.reflect.Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException
- Specified by:
deserialize
in interfacecom.google.gson.JsonDeserializer<TransformationMatrix>
- Throws:
com.google.gson.JsonParseException
-
parseOrigin
private static Vector3f parseOrigin(com.google.gson.JsonObject obj)
-
parseMatrix
public static Matrix4f parseMatrix(com.google.gson.JsonElement e)
-
parseFloatArray
public static float[] parseFloatArray(com.google.gson.JsonElement e, int length, java.lang.String prefix)
-
parseAxisRotation
public static Quaternion parseAxisRotation(com.google.gson.JsonElement e)
-
parseRotation
public static Quaternion parseRotation(com.google.gson.JsonElement e)
-
-