Class ModelElement.Deserializer

java.lang.Object
net.minecraft.client.render.model.json.ModelElement.Deserializer
All Implemented Interfaces:
JsonDeserializer<ModelElement>
Enclosing class:
ModelElement

@Environment(CLIENT) protected static class ModelElement.Deserializer extends Object implements JsonDeserializer<ModelElement>
Mappings:
Namespace Name
named net/minecraft/client/render/model/json/ModelElement$Deserializer
intermediary net/minecraft/class_785$class_786
official gfx$a
  • Field Details

    • DEFAULT_SHADE

      private static final boolean DEFAULT_SHADE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named DEFAULT_SHADE Lnet/minecraft/client/render/model/json/ModelElement$Deserializer;DEFAULT_SHADE:Z
      intermediary field_32788 Lnet/minecraft/class_785$class_786;field_32788:Z
      official a Lgfx$a;a:Z
  • Constructor Details

    • Deserializer

      protected Deserializer()
  • Method Details

    • deserialize

      public ModelElement deserialize(JsonElement jsonElement, Type type, JsonDeserializationContext jsonDeserializationContext) throws JsonParseException
      Specified by:
      deserialize in interface JsonDeserializer<ModelElement>
      Throws:
      JsonParseException
      Mappings:
      Namespace Name Mixin selector
      named deserialize Lnet/minecraft/client/render/model/json/ModelElement$Deserializer;deserialize(Lcom/google/gson/JsonElement;Ljava/lang/reflect/Type;Lcom/google/gson/JsonDeserializationContext;)Lnet/minecraft/client/render/model/json/ModelElement;
      intermediary method_3406 Lnet/minecraft/class_785$class_786;method_3406(Lcom/google/gson/JsonElement;Ljava/lang/reflect/Type;Lcom/google/gson/JsonDeserializationContext;)Lnet/minecraft/class_785;
      official a Lgfx$a;a(Lcom/google/gson/JsonElement;Ljava/lang/reflect/Type;Lcom/google/gson/JsonDeserializationContext;)Lgfx;
    • deserializeRotation

      @Nullable private @Nullable ModelRotation deserializeRotation(JsonObject object)
      Mappings:
      Namespace Name Mixin selector
      named deserializeRotation Lnet/minecraft/client/render/model/json/ModelElement$Deserializer;deserializeRotation(Lcom/google/gson/JsonObject;)Lnet/minecraft/client/render/model/json/ModelRotation;
      intermediary method_3410 Lnet/minecraft/class_785$class_786;method_3410(Lcom/google/gson/JsonObject;)Lnet/minecraft/class_789;
      official a Lgfx$a;a(Lcom/google/gson/JsonObject;)Lgfz;
    • deserializeRotationAngle

      private float deserializeRotationAngle(JsonObject object)
      Mappings:
      Namespace Name Mixin selector
      named deserializeRotationAngle Lnet/minecraft/client/render/model/json/ModelElement$Deserializer;deserializeRotationAngle(Lcom/google/gson/JsonObject;)F
      intermediary method_3403 Lnet/minecraft/class_785$class_786;method_3403(Lcom/google/gson/JsonObject;)F
      official b Lgfx$a;b(Lcom/google/gson/JsonObject;)F
    • deserializeAxis

      private Direction.Axis deserializeAxis(JsonObject object)
      Mappings:
      Namespace Name Mixin selector
      named deserializeAxis Lnet/minecraft/client/render/model/json/ModelElement$Deserializer;deserializeAxis(Lcom/google/gson/JsonObject;)Lnet/minecraft/util/math/Direction$Axis;
      intermediary method_3411 Lnet/minecraft/class_785$class_786;method_3411(Lcom/google/gson/JsonObject;)Lnet/minecraft/class_2350$class_2351;
      official c Lgfx$a;c(Lcom/google/gson/JsonObject;)Lji$a;
    • deserializeFacesValidating

      private Map<Direction,ModelElementFace> deserializeFacesValidating(JsonDeserializationContext context, JsonObject object)
      Mappings:
      Namespace Name Mixin selector
      named deserializeFacesValidating Lnet/minecraft/client/render/model/json/ModelElement$Deserializer;deserializeFacesValidating(Lcom/google/gson/JsonDeserializationContext;Lcom/google/gson/JsonObject;)Ljava/util/Map;
      intermediary method_3412 Lnet/minecraft/class_785$class_786;method_3412(Lcom/google/gson/JsonDeserializationContext;Lcom/google/gson/JsonObject;)Ljava/util/Map;
      official a Lgfx$a;a(Lcom/google/gson/JsonDeserializationContext;Lcom/google/gson/JsonObject;)Ljava/util/Map;
    • deserializeFaces

      private Map<Direction,ModelElementFace> deserializeFaces(JsonDeserializationContext context, JsonObject object)
      Mappings:
      Namespace Name Mixin selector
      named deserializeFaces Lnet/minecraft/client/render/model/json/ModelElement$Deserializer;deserializeFaces(Lcom/google/gson/JsonDeserializationContext;Lcom/google/gson/JsonObject;)Ljava/util/Map;
      intermediary method_3404 Lnet/minecraft/class_785$class_786;method_3404(Lcom/google/gson/JsonDeserializationContext;Lcom/google/gson/JsonObject;)Ljava/util/Map;
      official b Lgfx$a;b(Lcom/google/gson/JsonDeserializationContext;Lcom/google/gson/JsonObject;)Ljava/util/Map;
    • getDirection

      private Direction getDirection(String name)
      Mappings:
      Namespace Name Mixin selector
      named getDirection Lnet/minecraft/client/render/model/json/ModelElement$Deserializer;getDirection(Ljava/lang/String;)Lnet/minecraft/util/math/Direction;
      intermediary method_3408 Lnet/minecraft/class_785$class_786;method_3408(Ljava/lang/String;)Lnet/minecraft/class_2350;
      official a Lgfx$a;a(Ljava/lang/String;)Lji;
    • deserializeTo

      private Vector3f deserializeTo(JsonObject object)
      Mappings:
      Namespace Name Mixin selector
      named deserializeTo Lnet/minecraft/client/render/model/json/ModelElement$Deserializer;deserializeTo(Lcom/google/gson/JsonObject;)Lorg/joml/Vector3f;
      intermediary method_3405 Lnet/minecraft/class_785$class_786;method_3405(Lcom/google/gson/JsonObject;)Lorg/joml/Vector3f;
      official d Lgfx$a;d(Lcom/google/gson/JsonObject;)Lorg/joml/Vector3f;
    • deserializeFrom

      private Vector3f deserializeFrom(JsonObject object)
      Mappings:
      Namespace Name Mixin selector
      named deserializeFrom Lnet/minecraft/client/render/model/json/ModelElement$Deserializer;deserializeFrom(Lcom/google/gson/JsonObject;)Lorg/joml/Vector3f;
      intermediary method_3407 Lnet/minecraft/class_785$class_786;method_3407(Lcom/google/gson/JsonObject;)Lorg/joml/Vector3f;
      official e Lgfx$a;e(Lcom/google/gson/JsonObject;)Lorg/joml/Vector3f;
    • deserializeVec3f

      private Vector3f deserializeVec3f(JsonObject object, String name)
      Mappings:
      Namespace Name Mixin selector
      named deserializeVec3f Lnet/minecraft/client/render/model/json/ModelElement$Deserializer;deserializeVec3f(Lcom/google/gson/JsonObject;Ljava/lang/String;)Lorg/joml/Vector3f;
      intermediary method_3409 Lnet/minecraft/class_785$class_786;method_3409(Lcom/google/gson/JsonObject;Ljava/lang/String;)Lorg/joml/Vector3f;
      official a Lgfx$a;a(Lcom/google/gson/JsonObject;Ljava/lang/String;)Lorg/joml/Vector3f;