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, ModelBakery bakery, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelState, ItemOverrides overrides, ResourceLocation modelLocation) getMaterials
(IGeometryBakingContext context, Function<ResourceLocation, UnbakedModel> modelGetter, Set<com.mojang.datafixers.util.Pair<String, String>> missingTextureErrors) 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, ModelBakery bakery, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelState, ItemOverrides overrides, ResourceLocation modelLocation) - Specified by:
bake
in interfaceIUnbakedGeometry<SeparateTransformsModel>
-
getMaterials
public Collection<Material> getMaterials(IGeometryBakingContext context, Function<ResourceLocation, UnbakedModel> modelGetter, Set<com.mojang.datafixers.util.Pair<String, String>> missingTextureErrors) - Specified by:
getMaterials
in interfaceIUnbakedGeometry<SeparateTransformsModel>
-