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 pJson, Type pType, com.google.gson.JsonDeserializationContext pContext) private Map
<Direction, BlockElementFace> filterNullFromFaces
(com.google.gson.JsonDeserializationContext pContext, com.google.gson.JsonObject pJson) private float
getAngle
(com.google.gson.JsonObject pJson) private Direction.Axis
getAxis
(com.google.gson.JsonObject pJson) private Map
<Direction, BlockElementFace> getFaces
(com.google.gson.JsonDeserializationContext pContext, com.google.gson.JsonObject pJson) private Direction
private org.joml.Vector3f
getFrom
(com.google.gson.JsonObject pJson) private BlockElementRotation
getRotation
(com.google.gson.JsonObject pJson) private org.joml.Vector3f
getTo
(com.google.gson.JsonObject pJson) private org.joml.Vector3f
getVector3f
(com.google.gson.JsonObject pJson, String pMemberName)
-
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 pJson, Type pType, com.google.gson.JsonDeserializationContext pContext) 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 pJson) -
getAxis
-
getFaces
private Map<Direction,BlockElementFace> getFaces(com.google.gson.JsonDeserializationContext pContext, com.google.gson.JsonObject pJson) -
filterNullFromFaces
private Map<Direction,BlockElementFace> filterNullFromFaces(com.google.gson.JsonDeserializationContext pContext, com.google.gson.JsonObject pJson) -
getFacing
-
getTo
private org.joml.Vector3f getTo(com.google.gson.JsonObject pJson) -
getFrom
private org.joml.Vector3f getFrom(com.google.gson.JsonObject pJson) -
getVector3f
-