Class BlockFaceUV.Deserializer
java.lang.Object
net.minecraft.client.renderer.block.model.BlockFaceUV.Deserializer
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<BlockFaceUV>
- Enclosing class:
- BlockFaceUV
public static class BlockFaceUV.Deserializer
extends Object
implements com.google.gson.JsonDeserializer<BlockFaceUV>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(com.google.gson.JsonElement p_111404_, Type p_111405_, com.google.gson.JsonDeserializationContext p_111406_) protected int
getRotation
(com.google.gson.JsonObject p_111408_) private float[]
getUVs
(com.google.gson.JsonObject p_111410_)
-
Field Details
-
DEFAULT_ROTATION
private static final int DEFAULT_ROTATION- See Also:
-
-
Constructor Details
-
Deserializer
public Deserializer()
-
-
Method Details
-
deserialize
public BlockFaceUV deserialize(com.google.gson.JsonElement p_111404_, Type p_111405_, com.google.gson.JsonDeserializationContext p_111406_) throws com.google.gson.JsonParseException - Specified by:
deserialize
in interfacecom.google.gson.JsonDeserializer<BlockFaceUV>
- Throws:
com.google.gson.JsonParseException
-
getRotation
protected int getRotation(com.google.gson.JsonObject p_111408_) -
getUVs
@Nullable private float[] getUVs(com.google.gson.JsonObject p_111410_)
-