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 intprivate 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 floatgetAngle(JsonObject pJson) private Direction.AxisgetAxis(JsonObject pJson) private Map<Direction, BlockElementFace> getFaces(JsonDeserializationContext pContext, JsonObject pJson) private Directionprivate Vector3fgetFrom(JsonObject pJson) private BlockElementRotationgetRotation(JsonObject pJson) private Vector3fgetTo(JsonObject pJson) private Vector3fgetVector3f(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:
deserializein 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
-