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 json, Type type, JsonDeserializationContext context) private Map<Direction, BlockElementFace> filterNullFromFaces(JsonDeserializationContext context, JsonObject json) private floatgetAngle(JsonObject json) private Direction.AxisgetAxis(JsonObject json) private Map<Direction, BlockElementFace> getFaces(JsonDeserializationContext context, JsonObject json) private Directionprivate org.joml.Vector3fgetFrom(JsonObject json) private BlockElementRotationgetRotation(JsonObject json) private org.joml.Vector3fgetTo(JsonObject json) private org.joml.Vector3fgetVector3f(JsonObject json, String memberName)
-
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 json, Type type, JsonDeserializationContext context) throws JsonParseException - Specified by:
deserializein interfaceJsonDeserializer<BlockElement>- Throws:
JsonParseException
-
getRotation
-
getAngle
-
getAxis
-
getFaces
private Map<Direction,BlockElementFace> getFaces(JsonDeserializationContext context, JsonObject json) -
filterNullFromFaces
private Map<Direction,BlockElementFace> filterNullFromFaces(JsonDeserializationContext context, JsonObject json) -
getFacing
-
getTo
-
getFrom
-
getVector3f
-