Class BlockPart.Deserializer
java.lang.Object
net.minecraft.client.renderer.model.BlockPart.Deserializer
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<BlockPart>
- Enclosing class:
- BlockPart
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(com.google.gson.JsonElement p_deserialize_1_, Type p_deserialize_2_, com.google.gson.JsonDeserializationContext p_deserialize_3_) private Map<Direction,
BlockPartFace> filterNullFromFaces
(com.google.gson.JsonDeserializationContext p_178253_1_, com.google.gson.JsonObject p_178253_2_) private float
getAngle
(com.google.gson.JsonObject p_178255_1_) private Direction.Axis
getAxis
(com.google.gson.JsonObject p_178252_1_) private Map<Direction,
BlockPartFace> getFaces
(com.google.gson.JsonDeserializationContext p_178250_1_, com.google.gson.JsonObject p_178250_2_) private Direction
private Vector3f
getFrom
(com.google.gson.JsonObject p_199330_1_) private BlockPartRotation
getRotation
(com.google.gson.JsonObject p_178256_1_) private Vector3f
getTo
(com.google.gson.JsonObject p_199329_1_) private Vector3f
getVector3f
(com.google.gson.JsonObject p_199328_1_, String p_199328_2_)
-
Constructor Details
-
Deserializer
public Deserializer()
-
-
Method Details
-
deserialize
public BlockPart deserialize(com.google.gson.JsonElement p_deserialize_1_, Type p_deserialize_2_, com.google.gson.JsonDeserializationContext p_deserialize_3_) throws com.google.gson.JsonParseException - Specified by:
deserialize
in interfacecom.google.gson.JsonDeserializer<BlockPart>
- Throws:
com.google.gson.JsonParseException
-
getRotation
-
getAngle
private float getAngle(com.google.gson.JsonObject p_178255_1_) -
getAxis
-
getFaces
private Map<Direction,BlockPartFace> getFaces(com.google.gson.JsonDeserializationContext p_178250_1_, com.google.gson.JsonObject p_178250_2_) -
filterNullFromFaces
private Map<Direction,BlockPartFace> filterNullFromFaces(com.google.gson.JsonDeserializationContext p_178253_1_, com.google.gson.JsonObject p_178253_2_) -
getFacing
-
getTo
-
getFrom
-
getVector3f
-