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
ItemTransforms.TransformType
being used.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static final class
-
Field Summary
Modifier and TypeFieldDescriptionprivate final BlockModel
private final boolean
private static final org.apache.logging.log4j.Logger
private final com.google.common.collect.ImmutableMap<ItemTransforms.TransformType,
BlockModel> -
Constructor Summary
ModifierConstructorDescriptionSeparateTransformsModel
(BlockModel baseModel, com.google.common.collect.ImmutableMap<ItemTransforms.TransformType, BlockModel> perspectives) private
SeparateTransformsModel
(BlockModel baseModel, com.google.common.collect.ImmutableMap<ItemTransforms.TransformType, BlockModel> perspectives, boolean deprecatedLoader) -
Method Summary
Modifier and TypeMethodDescriptionbake
(IGeometryBakingContext context, ModelBaker baker, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelState, ItemOverrides overrides, ResourceLocation modelLocation) void
resolveParents
(Function<ResourceLocation, UnbakedModel> modelGetter, IGeometryBakingContext context) Resolve parents of nestedBlockModel
s which are later used inIUnbakedGeometry.bake(IGeometryBakingContext, ModelBaker, Function, ModelState, ItemOverrides, ResourceLocation)
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
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
baseModel
-
perspectives
private final com.google.common.collect.ImmutableMap<ItemTransforms.TransformType,BlockModel> perspectives -
deprecatedLoader
private final boolean deprecatedLoader
-
-
Constructor Details
-
SeparateTransformsModel
public SeparateTransformsModel(BlockModel baseModel, com.google.common.collect.ImmutableMap<ItemTransforms.TransformType, BlockModel> perspectives) -
SeparateTransformsModel
private SeparateTransformsModel(BlockModel baseModel, com.google.common.collect.ImmutableMap<ItemTransforms.TransformType, BlockModel> perspectives, boolean deprecatedLoader)
-
-
Method Details
-
bake
public BakedModel bake(IGeometryBakingContext context, ModelBaker baker, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelState, ItemOverrides overrides, ResourceLocation modelLocation) - 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, ResourceLocation)
viaBlockModel.resolveParents(Function)
- Specified by:
resolveParents
in interfaceIUnbakedGeometry<SeparateTransformsModel>
-