Class TransformationHelper.Deserializer
java.lang.Object
io.github.vampirestudios.vampirelib.client.TransformationHelper.Deserializer
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<com.mojang.math.Transformation>
- Enclosing class:
- TransformationHelper
public static class TransformationHelper.Deserializer
extends Object
implements com.google.gson.JsonDeserializer<com.mojang.math.Transformation>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.math.Transformationdeserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) static com.mojang.math.QuaternionparseAxisRotation(com.google.gson.JsonElement e) static float[]parseFloatArray(com.google.gson.JsonElement e, int length, String prefix) static com.mojang.math.Matrix4fparseMatrix(com.google.gson.JsonElement e) static com.mojang.math.QuaternionparseRotation(com.google.gson.JsonElement e)
-
Constructor Details
-
Deserializer
public Deserializer()
-
-
Method Details
-
parseMatrix
public static com.mojang.math.Matrix4f parseMatrix(com.google.gson.JsonElement e) -
parseFloatArray
-
parseAxisRotation
public static com.mojang.math.Quaternion parseAxisRotation(com.google.gson.JsonElement e) -
parseRotation
public static com.mojang.math.Quaternion parseRotation(com.google.gson.JsonElement e) -
deserialize
public com.mojang.math.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<com.mojang.math.Transformation>- Throws:
com.google.gson.JsonParseException
-