Class CuboidFace.Deserializer
java.lang.Object
net.minecraft.client.resources.model.cuboid.CuboidFace.Deserializer
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<CuboidFace>
- Enclosing class:
CuboidFace
public static class CuboidFace.Deserializer
extends Object
implements com.google.gson.JsonDeserializer<CuboidFace>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) private static @Nullable DirectiongetCullFacing(com.google.gson.JsonObject object) private static QuadrantgetRotation(com.google.gson.JsonObject object) private static StringgetTexture(com.google.gson.JsonObject object) private static intgetTintIndex(com.google.gson.JsonObject object) private static @Nullable CuboidFace.UVsgetUVs(com.google.gson.JsonObject object)
-
Field Details
-
DEFAULT_TINT_INDEX
private static final int DEFAULT_TINT_INDEX- See Also:
-
DEFAULT_ROTATION
private static final int DEFAULT_ROTATION- See Also:
-
-
Constructor Details
-
Deserializer
public Deserializer()
-
-
Method Details
-
deserialize
public CuboidFace deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException - Specified by:
deserializein interfacecom.google.gson.JsonDeserializer<CuboidFace>- Throws:
com.google.gson.JsonParseException
-
getTintIndex
private static int getTintIndex(com.google.gson.JsonObject object) -
getTexture
-
getCullFacing
-
getRotation
-
getUVs
-