Class ModelElement.Deserializer
java.lang.Object
net.minecraft.client.render.model.json.ModelElement.Deserializer
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<ModelElement>
- Enclosing class:
ModelElement
@Environment(CLIENT)
protected static class ModelElement.Deserializer
extends Object
implements com.google.gson.JsonDeserializer<ModelElement>
- Mappings:
Namespace Name official fpc$a
intermediary net/minecraft/class_785$class_786
named net/minecraft/client/render/model/json/ModelElement$Deserializer
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(com.google.gson.JsonElement jsonElement, Type type, com.google.gson.JsonDeserializationContext jsonDeserializationContext) private Direction.Axis
deserializeAxis
(com.google.gson.JsonObject object) private Map<Direction,
ModelElementFace> deserializeFaces
(com.google.gson.JsonDeserializationContext context, com.google.gson.JsonObject object) private Map<Direction,
ModelElementFace> deserializeFacesValidating
(com.google.gson.JsonDeserializationContext context, com.google.gson.JsonObject object) private Vector3f
deserializeFrom
(com.google.gson.JsonObject object) private @Nullable ModelRotation
deserializeRotation
(com.google.gson.JsonObject object) private float
deserializeRotationAngle
(com.google.gson.JsonObject object) private Vector3f
deserializeTo
(com.google.gson.JsonObject object) private Vector3f
deserializeVec3f
(com.google.gson.JsonObject object, String name) private Direction
getDirection
(String name)
-
Field Details
-
DEFAULT_SHADE
private static final boolean DEFAULT_SHADE- See Also:
- Mappings:
Namespace Name Mixin selector official a
Lfpc$a;a:Z
intermediary field_32788
Lnet/minecraft/class_785$class_786;field_32788:Z
named DEFAULT_SHADE
Lnet/minecraft/client/render/model/json/ModelElement$Deserializer;DEFAULT_SHADE:Z
-
-
Constructor Details
-
Deserializer
protected Deserializer()
-
-
Method Details
-
deserialize
public ModelElement deserialize(com.google.gson.JsonElement jsonElement, Type type, com.google.gson.JsonDeserializationContext jsonDeserializationContext) throws com.google.gson.JsonParseException - Specified by:
deserialize
in interfacecom.google.gson.JsonDeserializer<ModelElement>
- Throws:
com.google.gson.JsonParseException
- Mappings:
Namespace Name Mixin selector official a
Lfpc$a;a(Lcom/google/gson/JsonElement;Ljava/lang/reflect/Type;Lcom/google/gson/JsonDeserializationContext;)Lfpc;
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;
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;
-
deserializeRotation
- Mappings:
Namespace Name Mixin selector official a
Lfpc$a;a(Lcom/google/gson/JsonObject;)Lfpe;
intermediary method_3410
Lnet/minecraft/class_785$class_786;method_3410(Lcom/google/gson/JsonObject;)Lnet/minecraft/class_789;
named deserializeRotation
Lnet/minecraft/client/render/model/json/ModelElement$Deserializer;deserializeRotation(Lcom/google/gson/JsonObject;)Lnet/minecraft/client/render/model/json/ModelRotation;
-
deserializeRotationAngle
private float deserializeRotationAngle(com.google.gson.JsonObject object) - Mappings:
Namespace Name Mixin selector official b
Lfpc$a;b(Lcom/google/gson/JsonObject;)F
intermediary method_3403
Lnet/minecraft/class_785$class_786;method_3403(Lcom/google/gson/JsonObject;)F
named deserializeRotationAngle
Lnet/minecraft/client/render/model/json/ModelElement$Deserializer;deserializeRotationAngle(Lcom/google/gson/JsonObject;)F
-
deserializeAxis
- Mappings:
Namespace Name Mixin selector official c
Lfpc$a;c(Lcom/google/gson/JsonObject;)Lha$a;
intermediary method_3411
Lnet/minecraft/class_785$class_786;method_3411(Lcom/google/gson/JsonObject;)Lnet/minecraft/class_2350$class_2351;
named deserializeAxis
Lnet/minecraft/client/render/model/json/ModelElement$Deserializer;deserializeAxis(Lcom/google/gson/JsonObject;)Lnet/minecraft/util/math/Direction$Axis;
-
deserializeFacesValidating
private Map<Direction,ModelElementFace> deserializeFacesValidating(com.google.gson.JsonDeserializationContext context, com.google.gson.JsonObject object) - Mappings:
Namespace Name Mixin selector official a
Lfpc$a;a(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;
named deserializeFacesValidating
Lnet/minecraft/client/render/model/json/ModelElement$Deserializer;deserializeFacesValidating(Lcom/google/gson/JsonDeserializationContext;Lcom/google/gson/JsonObject;)Ljava/util/Map;
-
deserializeFaces
private Map<Direction,ModelElementFace> deserializeFaces(com.google.gson.JsonDeserializationContext context, com.google.gson.JsonObject object) - Mappings:
Namespace Name Mixin selector official b
Lfpc$a;b(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;
named deserializeFaces
Lnet/minecraft/client/render/model/json/ModelElement$Deserializer;deserializeFaces(Lcom/google/gson/JsonDeserializationContext;Lcom/google/gson/JsonObject;)Ljava/util/Map;
-
getDirection
- Mappings:
Namespace Name Mixin selector official a
Lfpc$a;a(Ljava/lang/String;)Lha;
intermediary method_3408
Lnet/minecraft/class_785$class_786;method_3408(Ljava/lang/String;)Lnet/minecraft/class_2350;
named getDirection
Lnet/minecraft/client/render/model/json/ModelElement$Deserializer;getDirection(Ljava/lang/String;)Lnet/minecraft/util/math/Direction;
-
deserializeTo
- Mappings:
Namespace Name Mixin selector official d
Lfpc$a;d(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;
named deserializeTo
Lnet/minecraft/client/render/model/json/ModelElement$Deserializer;deserializeTo(Lcom/google/gson/JsonObject;)Lorg/joml/Vector3f;
-
deserializeFrom
- Mappings:
Namespace Name Mixin selector official e
Lfpc$a;e(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;
named deserializeFrom
Lnet/minecraft/client/render/model/json/ModelElement$Deserializer;deserializeFrom(Lcom/google/gson/JsonObject;)Lorg/joml/Vector3f;
-
deserializeVec3f
- Mappings:
Namespace Name Mixin selector official a
Lfpc$a;a(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;
named deserializeVec3f
Lnet/minecraft/client/render/model/json/ModelElement$Deserializer;deserializeVec3f(Lcom/google/gson/JsonObject;Ljava/lang/String;)Lorg/joml/Vector3f;
-