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 Details

    • Deserializer

      public Deserializer()
  • Method Details

    • parseMatrix

      public static com.mojang.math.Matrix4f parseMatrix(com.google.gson.JsonElement e)
    • parseFloatArray

      public static float[] parseFloatArray(com.google.gson.JsonElement e, int length, String prefix)
    • 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:
      deserialize in interface com.google.gson.JsonDeserializer<com.mojang.math.Transformation>
      Throws:
      com.google.gson.JsonParseException