Package net.minecraftforge.client.model
Class CompositeModel
java.lang.Object
net.minecraftforge.client.model.CompositeModel
- All Implemented Interfaces:
- IUnbakedGeometry<CompositeModel>
A model composed of several named children.
 
 These respect component visibility as specified in IGeometryBakingContext and can additionally be provided
 with an item-specific render ordering, for multi-pass arrangements.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classstatic classA model data container which stores data for child components.static final class
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final com.google.common.collect.ImmutableMap<String,BlockModel> private final com.google.common.collect.ImmutableList<String>
- 
Constructor SummaryConstructorsConstructorDescriptionCompositeModel(com.google.common.collect.ImmutableMap<String, BlockModel> children, com.google.common.collect.ImmutableList<String> itemPasses) 
- 
Method SummaryModifier and TypeMethodDescriptionbake(IGeometryBakingContext context, ModelBaker baker, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelState, ItemOverrides overrides, ResourceLocation modelLocation) Returns a set of all the components whose visibility may be configured viaIGeometryBakingContext.voidresolveParents(Function<ResourceLocation, UnbakedModel> modelGetter, IGeometryBakingContext context) Resolve parents of nestedBlockModels which are later used inIUnbakedGeometry.bake(IGeometryBakingContext, ModelBaker, Function, ModelState, ItemOverrides, ResourceLocation)viaBlockModel.resolveParents(Function)
- 
Field Details- 
children
- 
itemPasses
 
- 
- 
Constructor Details- 
CompositeModelpublic CompositeModel(com.google.common.collect.ImmutableMap<String, BlockModel> children, com.google.common.collect.ImmutableList<String> itemPasses) 
 
- 
- 
Method Details- 
bakepublic BakedModel bake(IGeometryBakingContext context, ModelBaker baker, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelState, ItemOverrides overrides, ResourceLocation modelLocation) - Specified by:
- bakein interface- IUnbakedGeometry<CompositeModel>
 
- 
resolveParentspublic void resolveParents(Function<ResourceLocation, UnbakedModel> modelGetter, IGeometryBakingContext context) Description copied from interface:IUnbakedGeometryResolve parents of nestedBlockModels which are later used inIUnbakedGeometry.bake(IGeometryBakingContext, ModelBaker, Function, ModelState, ItemOverrides, ResourceLocation)viaBlockModel.resolveParents(Function)- Specified by:
- resolveParentsin interface- IUnbakedGeometry<CompositeModel>
 
- 
getConfigurableComponentNamesDescription copied from interface:IUnbakedGeometryReturns a set of all the components whose visibility may be configured viaIGeometryBakingContext.- Specified by:
- getConfigurableComponentNamesin interface- IUnbakedGeometry<CompositeModel>
- Returns:
- a set of all the components whose visibility may be configured via IGeometryBakingContext
 
 
-