Class Transformation.Deserializer
java.lang.Object
net.minecraft.client.render.model.json.Transformation.Deserializer
- All Implemented Interfaces:
JsonDeserializer<Transformation>
- Enclosing class:
- Transformation
@Environment(CLIENT) public static class Transformation.Deserializer extends Object implements JsonDeserializer<Transformation>
- Mappings:
Namespace Name official eiv$a
intermediary net/minecraft/class_804$class_805
named net/minecraft/client/render/model/json/Transformation$Deserializer
-
Field Summary
Fields Modifier and Type Field Description private static Vec3f
DEFAULT_ROTATION
private static Vec3f
DEFAULT_SCALE
private static Vec3f
DEFAULT_TRANSLATION
-
Constructor Summary
Constructors Modifier Constructor Description protected
Deserializer()
-
Method Summary
Modifier and Type Method Description Transformation
deserialize(JsonElement jsonElement, Type type, JsonDeserializationContext jsonDeserializationContext)
private Vec3f
parseVector3f(JsonObject json, String key, Vec3f fallback)
-
Field Details
-
DEFAULT_ROTATION
- Mappings:
Namespace Name Mixin selector official a
Leiv$a;a:Lg;
intermediary field_4288
Lnet/minecraft/class_804$class_805;field_4288:Lnet/minecraft/class_1160;
named DEFAULT_ROTATION
Lnet/minecraft/client/render/model/json/Transformation$Deserializer;DEFAULT_ROTATION:Lnet/minecraft/util/math/Vec3f;
-
DEFAULT_TRANSLATION
- Mappings:
Namespace Name Mixin selector official b
Leiv$a;b:Lg;
intermediary field_4290
Lnet/minecraft/class_804$class_805;field_4290:Lnet/minecraft/class_1160;
named DEFAULT_TRANSLATION
Lnet/minecraft/client/render/model/json/Transformation$Deserializer;DEFAULT_TRANSLATION:Lnet/minecraft/util/math/Vec3f;
-
DEFAULT_SCALE
- Mappings:
Namespace Name Mixin selector official c
Leiv$a;c:Lg;
intermediary field_4289
Lnet/minecraft/class_804$class_805;field_4289:Lnet/minecraft/class_1160;
named DEFAULT_SCALE
Lnet/minecraft/client/render/model/json/Transformation$Deserializer;DEFAULT_SCALE:Lnet/minecraft/util/math/Vec3f;
-
-
Constructor Details
-
Deserializer
protected Deserializer()
-
-
Method Details
-
deserialize
public Transformation deserialize(JsonElement jsonElement, Type type, JsonDeserializationContext jsonDeserializationContext) throws JsonParseException- Specified by:
deserialize
in interfaceJsonDeserializer<Transformation>
- Throws:
JsonParseException
- Mappings:
Namespace Name Mixin selector official a
Leiv$a;a(Lcom/google/gson/JsonElement;Ljava/lang/reflect/Type;Lcom/google/gson/JsonDeserializationContext;)Leiv;
intermediary method_3494
Lnet/minecraft/class_804$class_805;method_3494(Lcom/google/gson/JsonElement;Ljava/lang/reflect/Type;Lcom/google/gson/JsonDeserializationContext;)Lnet/minecraft/class_804;
named deserialize
Lnet/minecraft/client/render/model/json/Transformation$Deserializer;deserialize(Lcom/google/gson/JsonElement;Ljava/lang/reflect/Type;Lcom/google/gson/JsonDeserializationContext;)Lnet/minecraft/client/render/model/json/Transformation;
-
parseVector3f
- Mappings:
Namespace Name Mixin selector official a
Leiv$a;a(Lcom/google/gson/JsonObject;Ljava/lang/String;Lg;)Lg;
intermediary method_3493
Lnet/minecraft/class_804$class_805;method_3493(Lcom/google/gson/JsonObject;Ljava/lang/String;Lnet/minecraft/class_1160;)Lnet/minecraft/class_1160;
named parseVector3f
Lnet/minecraft/client/render/model/json/Transformation$Deserializer;parseVector3f(Lcom/google/gson/JsonObject;Ljava/lang/String;Lnet/minecraft/util/math/Vec3f;)Lnet/minecraft/util/math/Vec3f;
-