Package net.minecraftforge.common.util
Class TransformationHelper.Deserializer
java.lang.Object
net.minecraftforge.common.util.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>
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiondeserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) static org.joml.QuaternionfparseAxisRotation(com.google.gson.JsonElement e) static float[]parseFloatArray(com.google.gson.JsonElement e, int length, String prefix) static org.joml.Matrix4fparseMatrix(com.google.gson.JsonElement e) private static org.joml.Vector3fparseOrigin(com.google.gson.JsonObject obj) static org.joml.QuaternionfparseRotation(com.google.gson.JsonElement e) 
- 
Constructor Details- 
Deserializerpublic Deserializer()
 
- 
- 
Method Details- 
deserializepublic Transformation deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException - Specified by:
- deserializein interface- com.google.gson.JsonDeserializer<Transformation>
- Throws:
- com.google.gson.JsonParseException
 
- 
parseOriginprivate static org.joml.Vector3f parseOrigin(com.google.gson.JsonObject obj) 
- 
parseMatrixpublic static org.joml.Matrix4f parseMatrix(com.google.gson.JsonElement e) 
- 
parseFloatArray
- 
parseAxisRotationpublic static org.joml.Quaternionf parseAxisRotation(com.google.gson.JsonElement e) 
- 
parseRotationpublic static org.joml.Quaternionf parseRotation(com.google.gson.JsonElement e) 
 
-