Class Variant.Deserializer
java.lang.Object
net.minecraft.client.renderer.block.model.Variant.Deserializer
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<Variant>
- Enclosing class:
Variant
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final boolean
(package private) static final int
(package private) static final int
(package private) static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(com.google.gson.JsonElement json, Type type, com.google.gson.JsonDeserializationContext context) protected BlockModelRotation
getBlockRotation
(com.google.gson.JsonObject json) protected ResourceLocation
getModel
(com.google.gson.JsonObject json) private boolean
getUvLock
(com.google.gson.JsonObject json) protected int
getWeight
(com.google.gson.JsonObject json)
-
Field Details
-
DEFAULT_UVLOCK
static final boolean DEFAULT_UVLOCK- See Also:
-
DEFAULT_WEIGHT
static final int DEFAULT_WEIGHT- See Also:
-
DEFAULT_X_ROTATION
static final int DEFAULT_X_ROTATION- See Also:
-
DEFAULT_Y_ROTATION
static final int DEFAULT_Y_ROTATION- See Also:
-
-
Constructor Details
-
Deserializer
public Deserializer()
-
-
Method Details
-
deserialize
public Variant deserialize(com.google.gson.JsonElement json, Type type, com.google.gson.JsonDeserializationContext context) 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 json) -
getBlockRotation
-
getModel
-
getWeight
protected int getWeight(com.google.gson.JsonObject json)
-