Class BlockElement.Deserializer
java.lang.Object
net.minecraft.client.renderer.block.model.BlockElement.Deserializer
- All Implemented Interfaces:
JsonDeserializer<BlockElement>
- Enclosing class:
BlockElement
public static class BlockElement.Deserializer
extends Object
implements JsonDeserializer<BlockElement>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int
private static final boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(JsonElement pJson, Type pType, JsonDeserializationContext pContext) private Map
<Direction, BlockElementFace> filterNullFromFaces
(JsonDeserializationContext pContext, JsonObject pJson) private float
getAngle
(JsonObject pJson) private Direction.Axis
getAxis
(JsonObject pJson) private Map
<Direction, BlockElementFace> getFaces
(JsonDeserializationContext pContext, JsonObject pJson) private Direction
private org.joml.Vector3f
getFrom
(JsonObject pJson) private BlockElementRotation
getRotation
(JsonObject pJson) private org.joml.Vector3f
getTo
(JsonObject pJson) private org.joml.Vector3f
getVector3f
(JsonObject pJson, String pMemberName)
-
Field Details
-
DEFAULT_SHADE
private static final boolean DEFAULT_SHADE- See Also:
-
DEFAULT_LIGHT_EMISSION
private static final int DEFAULT_LIGHT_EMISSION- See Also:
-
-
Constructor Details
-
Deserializer
public Deserializer()
-
-
Method Details
-
deserialize
public BlockElement deserialize(JsonElement pJson, Type pType, JsonDeserializationContext pContext) throws JsonParseException - Specified by:
deserialize
in interfaceJsonDeserializer<BlockElement>
- Throws:
JsonParseException
-
getRotation
-
getAngle
-
getAxis
-
getFaces
private Map<Direction,BlockElementFace> getFaces(JsonDeserializationContext pContext, JsonObject pJson) -
filterNullFromFaces
private Map<Direction,BlockElementFace> filterNullFromFaces(JsonDeserializationContext pContext, JsonObject pJson) -
getFacing
-
getTo
-
getFrom
-
getVector3f
-