Class TransformationHelper.Deserializer
java.lang.Object
net.neoforged.neoforge.common.util.TransformationHelper.Deserializer
- All Implemented Interfaces:
JsonDeserializer<Transformation>
- Enclosing class:
TransformationHelper
public static class TransformationHelper.Deserializer
extends Object
implements JsonDeserializer<Transformation>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) static Quaternionfstatic float[]parseFloatArray(JsonElement e, int length, String prefix) static Matrix4fprivate static Vector3fparseOrigin(JsonObject obj) static Quaternionf
-
Constructor Details
-
Deserializer
public Deserializer()
-
-
Method Details
-
deserialize
public Transformation deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException - Specified by:
deserializein interfaceJsonDeserializer<Transformation>- Throws:
JsonParseException
-
parseOrigin
-
parseMatrix
-
parseFloatArray
-
parseAxisRotation
-
parseRotation
-