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 SummaryFieldsModifier and TypeFieldDescription(package private) static final boolean(package private) static final int(package private) static final int(package private) static final int
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiondeserialize(com.google.gson.JsonElement p_111893_, Type p_111894_, com.google.gson.JsonDeserializationContext p_111895_) protected BlockModelRotationgetBlockRotation(com.google.gson.JsonObject p_111897_) protected ResourceLocationgetModel(com.google.gson.JsonObject p_111899_) private booleangetUvLock(com.google.gson.JsonObject p_111903_) protected intgetWeight(com.google.gson.JsonObject p_111901_) 
- 
Field Details- 
DEFAULT_UVLOCKstatic final boolean DEFAULT_UVLOCK- See Also:
 
- 
DEFAULT_WEIGHTstatic final int DEFAULT_WEIGHT- See Also:
 
- 
DEFAULT_X_ROTATIONstatic final int DEFAULT_X_ROTATION- See Also:
 
- 
DEFAULT_Y_ROTATIONstatic final int DEFAULT_Y_ROTATION- See Also:
 
 
- 
- 
Constructor Details- 
Deserializerpublic Deserializer()
 
- 
- 
Method Details- 
deserializepublic Variant deserialize(com.google.gson.JsonElement p_111893_, Type p_111894_, com.google.gson.JsonDeserializationContext p_111895_) throws com.google.gson.JsonParseException - Specified by:
- deserializein interface- com.google.gson.JsonDeserializer<Variant>
- Throws:
- com.google.gson.JsonParseException
 
- 
getUvLockprivate boolean getUvLock(com.google.gson.JsonObject p_111903_) 
- 
getBlockRotation
- 
getModel
- 
getWeightprotected int getWeight(com.google.gson.JsonObject p_111901_) 
 
-