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 Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier 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_SHADE
private static final boolean DEFAULT_SHADE- See Also:
 
 
 - 
 - 
Constructor Details
- 
Deserializer
public Deserializer() 
 - 
 - 
Method Details
- 
deserialize
public 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 interfacecom.google.gson.JsonDeserializer<BlockElement>- Throws:
 com.google.gson.JsonParseException
 - 
getRotation
 - 
getAngle
private float getAngle(com.google.gson.JsonObject p_111343_)  - 
getAxis
 - 
getFaces
private Map<Direction,BlockElementFace> getFaces(com.google.gson.JsonDeserializationContext p_111326_, com.google.gson.JsonObject p_111327_)  - 
filterNullFromFaces
private Map<Direction,BlockElementFace> filterNullFromFaces(com.google.gson.JsonDeserializationContext p_111340_, com.google.gson.JsonObject p_111341_)  - 
getFacing
 - 
getTo
private org.joml.Vector3f getTo(com.google.gson.JsonObject p_111353_)  - 
getFrom
private org.joml.Vector3f getFrom(com.google.gson.JsonObject p_111347_)  - 
getVector3f
 
 -