Class BlockElement.Deserializer
java.lang.Object
net.minecraft.client.renderer.block.model.BlockElement.Deserializer
- All Implemented Interfaces:
- com.google.gson.JsonDeserializer<BlockElement>
- Enclosing class:
- BlockElement
public static class BlockElement.Deserializer
extends Object
implements com.google.gson.JsonDeserializer<BlockElement>
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiondeserialize(com.google.gson.JsonElement p_111329_, Type p_111330_, com.google.gson.JsonDeserializationContext p_111331_) private Map<Direction,BlockElementFace> filterNullFromFaces(com.google.gson.JsonDeserializationContext p_111340_, com.google.gson.JsonObject p_111341_) private floatgetAngle(com.google.gson.JsonObject p_111343_) private Direction.AxisgetAxis(com.google.gson.JsonObject p_111345_) private Map<Direction,BlockElementFace> getFaces(com.google.gson.JsonDeserializationContext p_111326_, com.google.gson.JsonObject p_111327_) private Directionprivate org.joml.Vector3fgetFrom(com.google.gson.JsonObject p_111347_) private BlockElementRotationgetRotation(com.google.gson.JsonObject p_111333_) private org.joml.Vector3fgetTo(com.google.gson.JsonObject p_111353_) private org.joml.Vector3fgetVector3f(com.google.gson.JsonObject p_111335_, String p_111336_) 
- 
Field Details- 
DEFAULT_SHADEprivate static final boolean DEFAULT_SHADE- See Also:
 
 
- 
- 
Constructor Details- 
Deserializerpublic Deserializer()
 
- 
- 
Method Details- 
deserializepublic BlockElement deserialize(com.google.gson.JsonElement p_111329_, Type p_111330_, com.google.gson.JsonDeserializationContext p_111331_) throws com.google.gson.JsonParseException - Specified by:
- deserializein interface- com.google.gson.JsonDeserializer<BlockElement>
- Throws:
- com.google.gson.JsonParseException
 
- 
getRotation
- 
getAngleprivate float getAngle(com.google.gson.JsonObject p_111343_) 
- 
getAxis
- 
getFacesprivate Map<Direction,BlockElementFace> getFaces(com.google.gson.JsonDeserializationContext p_111326_, com.google.gson.JsonObject p_111327_) 
- 
filterNullFromFacesprivate Map<Direction,BlockElementFace> filterNullFromFaces(com.google.gson.JsonDeserializationContext p_111340_, com.google.gson.JsonObject p_111341_) 
- 
getFacing
- 
getToprivate org.joml.Vector3f getTo(com.google.gson.JsonObject p_111353_) 
- 
getFromprivate org.joml.Vector3f getFrom(com.google.gson.JsonObject p_111347_) 
- 
getVector3f
 
-