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 Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classA model data container which stores data for child components.static final class - 
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final com.google.common.collect.ImmutableMap<String,BlockModel> private final com.google.common.collect.ImmutableList<String> - 
Constructor Summary
ConstructorsConstructorDescriptionCompositeModel(com.google.common.collect.ImmutableMap<String, BlockModel> children, com.google.common.collect.ImmutableList<String> itemPasses)  - 
Method Summary
Modifier 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
- 
CompositeModel
public CompositeModel(com.google.common.collect.ImmutableMap<String, BlockModel> children, com.google.common.collect.ImmutableList<String> itemPasses)  
 - 
 - 
Method Details
- 
bake
public BakedModel bake(IGeometryBakingContext context, ModelBaker baker, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelState, ItemOverrides overrides, ResourceLocation modelLocation) - Specified by:
 bakein interfaceIUnbakedGeometry<CompositeModel>
 - 
resolveParents
public 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 interfaceIUnbakedGeometry<CompositeModel>
 - 
getConfigurableComponentNames
Description copied from interface:IUnbakedGeometryReturns a set of all the components whose visibility may be configured viaIGeometryBakingContext.- Specified by:
 getConfigurableComponentNamesin interfaceIUnbakedGeometry<CompositeModel>- Returns:
 - a set of all the components whose visibility may be configured via 
IGeometryBakingContext 
 
 -