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
-
Constructor Summary
-
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 float
getAngle
(com.google.gson.JsonObject p_111343_) private Direction.Axis
getAxis
(com.google.gson.JsonObject p_111345_) private Map<Direction,
BlockElementFace> getFaces
(com.google.gson.JsonDeserializationContext p_111326_, com.google.gson.JsonObject p_111327_) private Direction
private Vector3f
getFrom
(com.google.gson.JsonObject p_111353_) private BlockElementRotation
getRotation
(com.google.gson.JsonObject p_111333_) private Vector3f
getTo
(com.google.gson.JsonObject p_111347_) private Vector3f
getVector3f
(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:
deserialize
in 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
-