Package net.minecraftforge.client.model
Class MultiLayerModel
java.lang.Object
net.minecraftforge.client.model.MultiLayerModel
- All Implemented Interfaces:
IModelGeometry<MultiLayerModel>
A model that can be rendered in multiple
RenderType
.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
private static final class
-
Field Summary
Modifier and TypeFieldDescriptionprivate final boolean
private static final org.apache.logging.log4j.Logger
private final com.google.common.collect.ImmutableList<com.mojang.datafixers.util.Pair<RenderType,
IUnbakedModel>> -
Constructor Summary
ConstructorDescriptionMultiLayerModel
(com.google.common.collect.ImmutableList<com.mojang.datafixers.util.Pair<RenderType, IUnbakedModel>> models, boolean convertRenderTypes) MultiLayerModel
(Map<RenderType, IUnbakedModel> models) -
Method Summary
Modifier and TypeMethodDescriptionbake
(IModelConfiguration owner, ModelBakery bakery, Function<RenderMaterial, TextureAtlasSprite> spriteGetter, IModelTransform modelTransform, ItemOverrideList overrides, ResourceLocation modelLocation) private static com.google.common.collect.ImmutableList<com.mojang.datafixers.util.Pair<RenderType,
IBakedModel>> buildModels
(List<com.mojang.datafixers.util.Pair<RenderType, IUnbakedModel>> models, IModelTransform modelTransform, ModelBakery bakery, Function<RenderMaterial, TextureAtlasSprite> spriteGetter, ResourceLocation modelLocation) getTextures
(IModelConfiguration owner, Function<ResourceLocation, IUnbakedModel> 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.IModelGeometry
getPart, getParts
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
models
private final com.google.common.collect.ImmutableList<com.mojang.datafixers.util.Pair<RenderType,IUnbakedModel>> models -
convertRenderTypes
private final boolean convertRenderTypes
-
-
Constructor Details
-
MultiLayerModel
-
MultiLayerModel
public MultiLayerModel(com.google.common.collect.ImmutableList<com.mojang.datafixers.util.Pair<RenderType, IUnbakedModel>> models, boolean convertRenderTypes)
-
-
Method Details
-
getTextures
public Collection<RenderMaterial> getTextures(IModelConfiguration owner, Function<ResourceLocation, IUnbakedModel> modelGetter, Set<com.mojang.datafixers.util.Pair<String, String>> missingTextureErrors) - Specified by:
getTextures
in interfaceIModelGeometry<MultiLayerModel>
-
buildModels
private static com.google.common.collect.ImmutableList<com.mojang.datafixers.util.Pair<RenderType,IBakedModel>> buildModels(List<com.mojang.datafixers.util.Pair<RenderType, IUnbakedModel>> models, IModelTransform modelTransform, ModelBakery bakery, Function<RenderMaterial, TextureAtlasSprite> spriteGetter, ResourceLocation modelLocation) -
bake
public IBakedModel bake(IModelConfiguration owner, ModelBakery bakery, Function<RenderMaterial, TextureAtlasSprite> spriteGetter, IModelTransform modelTransform, ItemOverrideList overrides, ResourceLocation modelLocation) - Specified by:
bake
in interfaceIModelGeometry<MultiLayerModel>
-