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:
ModelLoaderRegistry.ExpandedBlockModelDeserializer
- Enclosing class:
- BlockModel
public static class BlockModel.Deserializer
extends Object
implements com.google.gson.JsonDeserializer<BlockModel>
-
Field Summary
-
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_111502_)
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_)
-
Field Details
-
DEFAULT_AMBIENT_OCCLUSION
private static final boolean DEFAULT_AMBIENT_OCCLUSION- See Also:
- Constant Field Values
-
-
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
protected boolean getAmbientOcclusion(com.google.gson.JsonObject p_111502_) -
getElements
protected List<BlockElement> getElements(com.google.gson.JsonDeserializationContext p_111507_, com.google.gson.JsonObject p_111508_)
-