Class ItemLayerModel
java.lang.Object
net.neoforged.neoforge.client.model.ItemLayerModel
- All Implemented Interfaces:
 IUnbakedGeometry<ItemLayerModel>
Forge reimplementation of vanilla's 
ItemModelGenerator, i.e. builtin/generated models with some tweaks:
 - Represented as IUnbakedGeometry so it can be baked as usual instead of being special-cased
 - Not limited to an arbitrary number of layers (5)
 - Support for per-layer render types- 
Nested Class Summary
Nested Classes - 
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final it.unimi.dsi.fastutil.ints.Int2ObjectMap<ExtraFaceData>private final it.unimi.dsi.fastutil.ints.Int2ObjectMap<ResourceLocation>private @Nullable com.google.common.collect.ImmutableList<Material> - 
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateItemLayerModel(@Nullable com.google.common.collect.ImmutableList<Material> textures, it.unimi.dsi.fastutil.ints.Int2ObjectMap<ExtraFaceData> layerData, it.unimi.dsi.fastutil.ints.Int2ObjectMap<ResourceLocation> renderTypeNames)  - 
Method Summary
Modifier and TypeMethodDescriptionbake(IGeometryBakingContext context, ModelBaker baker, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelState, ItemOverrides overrides, ResourceLocation modelLocation) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.neoforged.neoforge.client.model.geometry.IUnbakedGeometry
getConfigurableComponentNames, resolveParents 
- 
Field Details
- 
textures
 - 
layerData
 - 
renderTypeNames
 
 - 
 - 
Constructor Details
- 
ItemLayerModel
private ItemLayerModel(@Nullable @Nullable com.google.common.collect.ImmutableList<Material> textures, it.unimi.dsi.fastutil.ints.Int2ObjectMap<ExtraFaceData> layerData, it.unimi.dsi.fastutil.ints.Int2ObjectMap<ResourceLocation> renderTypeNames)  
 - 
 - 
Method Details
- 
bake
public BakedModel bake(IGeometryBakingContext context, ModelBaker baker, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelState, ItemOverrides overrides, ResourceLocation modelLocation) - Specified by:
 bakein interfaceIUnbakedGeometry<ItemLayerModel>
 
 -