Interface UnbakedModelExtension
- All Superinterfaces:
ResolvableModel
- All Known Subinterfaces:
UnbakedModel
- All Known Implementing Classes:
AbstractUnbakedModel,BlockModel,CompositeUnbakedModel,DelegateUnbakedModel,EmptyModel,ItemModelGenerator,ObjModel
Extension for
UnbakedModel.-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.resources.model.ResolvableModel
ResolvableModel.Resolver -
Method Summary
Modifier and TypeMethodDescriptiondefault voidfillAdditionalProperties(ContextMap.Builder propertiesBuilder) Appends additional properties for this model to the builder.default voidresolveDependencies(ResolvableModel.Resolver resolver) Can be overridden to request the resolution of additional models.
-
Method Details
-
fillAdditionalProperties
Appends additional properties for this model to the builder.This method will already have been called on the parent models. It can modify the properties added by a parent model and/or add its own. This ensures that the properties are merged across the model parent-child chain.
The context map containing all the properties can be retrieved later using
ResolvedModelExtension.getTopAdditionalProperties().- See Also:
-
resolveDependencies
Can be overridden to request the resolution of additional models. UseResolvableModel.Resolver.markDependency(ResourceLocation)to mark dependencies, then retrieve them later fromModelBaker.getModel(ResourceLocation).- Specified by:
resolveDependenciesin interfaceResolvableModel
-