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 Vector3fgetFrom(com.google.gson.JsonObject p_111353_)private BlockElementRotationgetRotation(com.google.gson.JsonObject p_111333_)private Vector3fgetTo(com.google.gson.JsonObject p_111347_)private Vector3fgetVector3f(com.google.gson.JsonObject p_111335_, String p_111336_)
-
Field Details
-
DEFAULT_SHADE
private static final boolean DEFAULT_SHADE- See Also:
- Constant Field Values
-
-
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
-
getFrom
-
getVector3f
-