Class BlockModel.Deserializer
java.lang.Object
net.minecraft.client.renderer.block.model.BlockModel.Deserializer
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<BlockModel>
- Direct Known Subclasses:
ExtendedBlockModelDeserializer
- Enclosing class:
BlockModel
public static class BlockModel.Deserializer
extends Object
implements com.google.gson.JsonDeserializer<BlockModel>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(com.google.gson.JsonElement p_111498_, Type p_111499_, com.google.gson.JsonDeserializationContext p_111500_) protected Boolean
getAmbientOcclusion
(com.google.gson.JsonObject p_273052_) protected List<BlockElement>
getElements
(com.google.gson.JsonDeserializationContext p_111507_, com.google.gson.JsonObject p_111508_) protected List<ItemOverride>
getOverrides
(com.google.gson.JsonDeserializationContext p_111495_, com.google.gson.JsonObject p_111496_) private String
getParentName
(com.google.gson.JsonObject p_111512_) getTextureMap
(com.google.gson.JsonObject p_111510_) parseTextureLocationOrReference
(ResourceLocation p_111504_, String p_111505_)
-
Constructor Details
-
Deserializer
public Deserializer()
-
-
Method Details
-
deserialize
public BlockModel deserialize(com.google.gson.JsonElement p_111498_, Type p_111499_, com.google.gson.JsonDeserializationContext p_111500_) throws com.google.gson.JsonParseException - Specified by:
deserialize
in interfacecom.google.gson.JsonDeserializer<BlockModel>
- Throws:
com.google.gson.JsonParseException
-
getOverrides
protected List<ItemOverride> getOverrides(com.google.gson.JsonDeserializationContext p_111495_, com.google.gson.JsonObject p_111496_) -
getTextureMap
-
parseTextureLocationOrReference
private static com.mojang.datafixers.util.Either<Material,String> parseTextureLocationOrReference(ResourceLocation p_111504_, String p_111505_) -
getParentName
-
getAmbientOcclusion
-
getElements
protected List<BlockElement> getElements(com.google.gson.JsonDeserializationContext p_111507_, com.google.gson.JsonObject p_111508_)
-