Class ItemTransform.Deserializer

java.lang.Object
net.minecraft.client.renderer.block.model.ItemTransform.Deserializer
All Implemented Interfaces:
com.google.gson.JsonDeserializer<ItemTransform>
Enclosing class:
ItemTransform

public static class ItemTransform.Deserializer extends Object implements com.google.gson.JsonDeserializer<ItemTransform>
  • Field Details

    • DEFAULT_ROTATION

      public static final Vector3f DEFAULT_ROTATION
    • DEFAULT_TRANSLATION

      public static final Vector3f DEFAULT_TRANSLATION
    • DEFAULT_SCALE

      public static final Vector3f DEFAULT_SCALE
    • MAX_TRANSLATION

      public static final float MAX_TRANSLATION
      See Also:
      Constant Field Values
    • MAX_SCALE

      public static final float MAX_SCALE
      See Also:
      Constant Field Values
  • Constructor Details

    • Deserializer

      public Deserializer()
  • Method Details

    • deserialize

      public ItemTransform deserialize(com.google.gson.JsonElement p_111775_, Type p_111776_, com.google.gson.JsonDeserializationContext p_111777_) throws com.google.gson.JsonParseException
      Specified by:
      deserialize in interface com.google.gson.JsonDeserializer<ItemTransform>
      Throws:
      com.google.gson.JsonParseException
    • getVector3f

      private Vector3f getVector3f(com.google.gson.JsonObject p_111779_, String p_111780_, Vector3f p_111781_)