Package net.minecraftforge.client.model
Class SeparateTransformsModel
java.lang.Object
net.minecraftforge.client.model.SeparateTransformsModel
- All Implemented Interfaces:
IUnbakedGeometry<SeparateTransformsModel>
public class SeparateTransformsModel
extends Object
implements IUnbakedGeometry<SeparateTransformsModel>
A model composed of multiple sub-models which are picked based on the
ItemDisplayContext
being used.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static final class
-
Field Summary
Modifier and TypeFieldDescriptionprivate final BlockModel
private final com.google.common.collect.ImmutableMap
<ItemDisplayContext, BlockModel> -
Constructor Summary
ConstructorDescriptionSeparateTransformsModel
(BlockModel baseModel, com.google.common.collect.ImmutableMap<ItemDisplayContext, BlockModel> perspectives) -
Method Summary
Modifier and TypeMethodDescriptionbake
(IGeometryBakingContext context, ModelBaker baker, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelState, ItemOverrides overrides) void
resolveParents
(Function<ResourceLocation, UnbakedModel> modelGetter, IGeometryBakingContext context) Resolve parents of nestedBlockModel
s which are later used inIUnbakedGeometry.bake(IGeometryBakingContext, ModelBaker, Function, ModelState, ItemOverrides)
viaBlockModel.resolveParents(Function)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraftforge.client.model.geometry.IUnbakedGeometry
getConfigurableComponentNames
-
Field Details
-
baseModel
-
perspectives
-
-
Constructor Details
-
SeparateTransformsModel
public SeparateTransformsModel(BlockModel baseModel, com.google.common.collect.ImmutableMap<ItemDisplayContext, BlockModel> perspectives)
-
-
Method Details
-
bake
public BakedModel bake(IGeometryBakingContext context, ModelBaker baker, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelState, ItemOverrides overrides) - Specified by:
bake
in interfaceIUnbakedGeometry<SeparateTransformsModel>
-
resolveParents
public void resolveParents(Function<ResourceLocation, UnbakedModel> modelGetter, IGeometryBakingContext context) Description copied from interface:IUnbakedGeometry
Resolve parents of nestedBlockModel
s which are later used inIUnbakedGeometry.bake(IGeometryBakingContext, ModelBaker, Function, ModelState, ItemOverrides)
viaBlockModel.resolveParents(Function)
- Specified by:
resolveParents
in interfaceIUnbakedGeometry<SeparateTransformsModel>
-