Class BlockModel.Deserializer
- java.lang.Object
-
- net.minecraft.client.renderer.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 java.lang.Object implements com.google.gson.JsonDeserializer<BlockModel>
-
-
Constructor Summary
Constructors Constructor Description Deserializer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BlockModel
deserialize(com.google.gson.JsonElement p_deserialize_1_, java.lang.reflect.Type p_deserialize_2_, com.google.gson.JsonDeserializationContext p_deserialize_3_)
protected boolean
getAmbientOcclusion(com.google.gson.JsonObject p_178328_1_)
protected java.util.List<BlockPart>
getElements(com.google.gson.JsonDeserializationContext p_178325_1_, com.google.gson.JsonObject p_178325_2_)
protected java.util.List<ItemOverride>
getOverrides(com.google.gson.JsonDeserializationContext p_187964_1_, com.google.gson.JsonObject p_187964_2_)
private java.lang.String
getParentName(com.google.gson.JsonObject p_178326_1_)
private java.util.Map<java.lang.String,com.mojang.datafixers.util.Either<RenderMaterial,java.lang.String>>
getTextureMap(com.google.gson.JsonObject p_178329_1_)
private static com.mojang.datafixers.util.Either<RenderMaterial,java.lang.String>
parseTextureLocationOrReference(ResourceLocation p_228819_0_, java.lang.String p_228819_1_)
-
-
-
Method Detail
-
deserialize
public BlockModel deserialize(com.google.gson.JsonElement p_deserialize_1_, java.lang.reflect.Type p_deserialize_2_, com.google.gson.JsonDeserializationContext p_deserialize_3_) throws com.google.gson.JsonParseException
- Specified by:
deserialize
in interfacecom.google.gson.JsonDeserializer<BlockModel>
- Throws:
com.google.gson.JsonParseException
-
getOverrides
protected java.util.List<ItemOverride> getOverrides(com.google.gson.JsonDeserializationContext p_187964_1_, com.google.gson.JsonObject p_187964_2_)
-
getTextureMap
private java.util.Map<java.lang.String,com.mojang.datafixers.util.Either<RenderMaterial,java.lang.String>> getTextureMap(com.google.gson.JsonObject p_178329_1_)
-
parseTextureLocationOrReference
private static com.mojang.datafixers.util.Either<RenderMaterial,java.lang.String> parseTextureLocationOrReference(ResourceLocation p_228819_0_, java.lang.String p_228819_1_)
-
getParentName
private java.lang.String getParentName(com.google.gson.JsonObject p_178326_1_)
-
getAmbientOcclusion
protected boolean getAmbientOcclusion(com.google.gson.JsonObject p_178328_1_)
-
getElements
protected java.util.List<BlockPart> getElements(com.google.gson.JsonDeserializationContext p_178325_1_, com.google.gson.JsonObject p_178325_2_)
-
-