Class Variant.Deserializer

  • All Implemented Interfaces:
    com.google.gson.JsonDeserializer<Variant>
    Enclosing class:
    Variant

    public static class Variant.Deserializer
    extends java.lang.Object
    implements com.google.gson.JsonDeserializer<Variant>
    • Constructor Summary

      Constructors 
      Constructor Description
      Deserializer()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Variant deserialize​(com.google.gson.JsonElement p_deserialize_1_, java.lang.reflect.Type p_deserialize_2_, com.google.gson.JsonDeserializationContext p_deserialize_3_)  
      protected ModelRotation getBlockRotation​(com.google.gson.JsonObject p_188042_1_)  
      protected ResourceLocation getModel​(com.google.gson.JsonObject p_188043_1_)  
      private boolean getUvLock​(com.google.gson.JsonObject p_188044_1_)  
      protected int getWeight​(com.google.gson.JsonObject p_188045_1_)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Deserializer

        public Deserializer()
    • Method Detail

      • deserialize

        public Variant deserialize​(com.google.gson.JsonElement p_deserialize_1_,
                                   java.lang.reflect.Type p_deserialize_2_,
                                   com.google.gson.JsonDeserializationContext p_deserialize_3_)
                            throws com.google.gson.JsonParseException
        Specified by:
        deserialize in interface com.google.gson.JsonDeserializer<Variant>
        Throws:
        com.google.gson.JsonParseException
      • getUvLock

        private boolean getUvLock​(com.google.gson.JsonObject p_188044_1_)
      • getBlockRotation

        protected ModelRotation getBlockRotation​(com.google.gson.JsonObject p_188042_1_)
      • getModel

        protected ResourceLocation getModel​(com.google.gson.JsonObject p_188043_1_)
      • getWeight

        protected int getWeight​(com.google.gson.JsonObject p_188045_1_)