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 Object implements com.google.gson.JsonDeserializer<TransformationMatrix>
  • Field Details

    • ORIGIN_CORNER

      private static final Vector3f ORIGIN_CORNER
    • ORIGIN_OPPOSING_CORNER

      private static final Vector3f ORIGIN_OPPOSING_CORNER
    • ORIGIN_CENTER

      private static final Vector3f ORIGIN_CENTER
  • Constructor Details

    • Deserializer

      public Deserializer()
  • Method Details

    • deserialize

      public TransformationMatrix deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException
      Specified by:
      deserialize in interface com.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, String prefix)
    • parseAxisRotation

      public static Quaternion parseAxisRotation(com.google.gson.JsonElement e)
    • parseRotation

      public static Quaternion parseRotation(com.google.gson.JsonElement e)