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 json, Type type, com.google.gson.JsonDeserializationContext context) private Map<Direction, BlockElementFace> filterNullFromFaces(com.google.gson.JsonDeserializationContext context, com.google.gson.JsonObject json) private floatgetAngle(com.google.gson.JsonObject json) private Direction.AxisgetAxis(com.google.gson.JsonObject json) private Map<Direction, BlockElementFace> getFaces(com.google.gson.JsonDeserializationContext context, com.google.gson.JsonObject json) private Directionprivate org.joml.Vector3fgetFrom(com.google.gson.JsonObject json) private BlockElementRotationgetRotation(com.google.gson.JsonObject json) private org.joml.Vector3fgetTo(com.google.gson.JsonObject json) private org.joml.Vector3fgetVector3f(com.google.gson.JsonObject json, String memberName)
-
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 json, Type type, com.google.gson.JsonDeserializationContext context) 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 json) -
getAxis
-
getFaces
private Map<Direction,BlockElementFace> getFaces(com.google.gson.JsonDeserializationContext context, com.google.gson.JsonObject json) -
filterNullFromFaces
private Map<Direction,BlockElementFace> filterNullFromFaces(com.google.gson.JsonDeserializationContext context, com.google.gson.JsonObject json) -
getFacing
-
getTo
private org.joml.Vector3f getTo(com.google.gson.JsonObject json) -
getFrom
private org.joml.Vector3f getFrom(com.google.gson.JsonObject json) -
getVector3f
-