Class Variant.Deserializer
java.lang.Object
net.minecraft.client.renderer.model.Variant.Deserializer
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<Variant>
- Enclosing class:
- Variant
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(com.google.gson.JsonElement p_deserialize_1_, 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_)
-
Constructor Details
-
Deserializer
public Deserializer()
-
-
Method Details
-
deserialize
public Variant deserialize(com.google.gson.JsonElement p_deserialize_1_, Type p_deserialize_2_, com.google.gson.JsonDeserializationContext p_deserialize_3_) throws com.google.gson.JsonParseException - Specified by:
deserialize
in interfacecom.google.gson.JsonDeserializer<Variant>
- Throws:
com.google.gson.JsonParseException
-
getUvLock
private boolean getUvLock(com.google.gson.JsonObject p_188044_1_) -
getBlockRotation
-
getModel
-
getWeight
protected int getWeight(com.google.gson.JsonObject p_188045_1_)
-