Class Variant.Deserializer
java.lang.Object
net.minecraft.client.renderer.block.model.Variant.Deserializer
- All Implemented Interfaces:
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(JsonElement pJson, Type pType, JsonDeserializationContext pContext) protected BlockModelRotationgetBlockRotation(JsonObject pJson) protected ResourceLocationgetModel(JsonObject pJson) private booleangetUvLock(JsonObject pJson) protected intgetWeight(JsonObject pJson)
-
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(JsonElement pJson, Type pType, JsonDeserializationContext pContext) throws JsonParseException - Specified by:
deserializein interfaceJsonDeserializer<Variant>- Throws:
JsonParseException
-
getUvLock
-
getBlockRotation
-
getModel
-
getWeight
-