Class BlockModelDefinition.Deserializer
java.lang.Object
net.minecraft.client.renderer.model.BlockModelDefinition.Deserializer
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<BlockModelDefinition>
- Enclosing class:
- BlockModelDefinition
public static class BlockModelDefinition.Deserializer
extends Object
implements com.google.gson.JsonDeserializer<BlockModelDefinition>
-
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_) protected Multipart
getMultiPart
(com.google.gson.JsonDeserializationContext p_187998_1_, com.google.gson.JsonObject p_187998_2_) protected Map<String,
VariantList> getVariants
(com.google.gson.JsonDeserializationContext p_187999_1_, com.google.gson.JsonObject p_187999_2_)
-
Constructor Details
-
Deserializer
public Deserializer()
-
-
Method Details
-
deserialize
public BlockModelDefinition 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<BlockModelDefinition>
- Throws:
com.google.gson.JsonParseException
-
getVariants
protected Map<String,VariantList> getVariants(com.google.gson.JsonDeserializationContext p_187999_1_, com.google.gson.JsonObject p_187999_2_) -
getMultiPart
@Nullable protected Multipart getMultiPart(com.google.gson.JsonDeserializationContext p_187998_1_, com.google.gson.JsonObject p_187998_2_)
-