Class BlockModel.Deserializer
java.lang.Object
net.minecraft.client.renderer.block.model.BlockModel.Deserializer
- All Implemented Interfaces:
JsonDeserializer<BlockModel>
- Direct Known Subclasses:
ExtendedBlockModelDeserializer
- Enclosing class:
BlockModel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserialize(JsonElement json, Type type, JsonDeserializationContext context) protected Booleanprotected List<BlockElement> getElements(JsonDeserializationContext context, JsonObject json) protected List<ItemOverride> getOverrides(JsonDeserializationContext context, JsonObject json) private StringgetParentName(JsonObject json) getTextureMap(JsonObject json) parseTextureLocationOrReference(ResourceLocation location, String name)
-
Constructor Details
-
Deserializer
public Deserializer()
-
-
Method Details
-
deserialize
public BlockModel deserialize(JsonElement json, Type type, JsonDeserializationContext context) throws JsonParseException - Specified by:
deserializein interfaceJsonDeserializer<BlockModel>- Throws:
JsonParseException
-
getOverrides
-
getTextureMap
private Map<String,com.mojang.datafixers.util.Either<Material, getTextureMapString>> (JsonObject json) -
parseTextureLocationOrReference
private static com.mojang.datafixers.util.Either<Material,String> parseTextureLocationOrReference(ResourceLocation location, String name) -
getParentName
-
getAmbientOcclusion
-
getElements
-