Package net.minecraftforge.client.model
Class MultiLayerModel
- java.lang.Object
-
- net.minecraftforge.client.model.MultiLayerModel
-
- All Implemented Interfaces:
IModelGeometry<MultiLayerModel>
public final class MultiLayerModel extends java.lang.Object implements IModelGeometry<MultiLayerModel>
A model that can be rendered in multipleRenderType
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MultiLayerModel.Loader
private static class
MultiLayerModel.MultiLayerBakedModel
-
Field Summary
Fields Modifier and Type Field Description private boolean
convertRenderTypes
private static org.apache.logging.log4j.Logger
LOGGER
private com.google.common.collect.ImmutableList<com.mojang.datafixers.util.Pair<RenderType,IUnbakedModel>>
models
-
Constructor Summary
Constructors Constructor Description MultiLayerModel(com.google.common.collect.ImmutableList<com.mojang.datafixers.util.Pair<RenderType,IUnbakedModel>> models, boolean convertRenderTypes)
MultiLayerModel(java.util.Map<RenderType,IUnbakedModel> models)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IBakedModel
bake(IModelConfiguration owner, ModelBakery bakery, java.util.function.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(java.util.List<com.mojang.datafixers.util.Pair<RenderType,IUnbakedModel>> models, IModelTransform modelTransform, ModelBakery bakery, java.util.function.Function<RenderMaterial,TextureAtlasSprite> spriteGetter, ResourceLocation modelLocation)
java.util.Collection<RenderMaterial>
getTextures(IModelConfiguration owner, java.util.function.Function<ResourceLocation,IUnbakedModel> modelGetter, java.util.Set<com.mojang.datafixers.util.Pair<java.lang.String,java.lang.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 Detail
-
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 Detail
-
MultiLayerModel
public MultiLayerModel(java.util.Map<RenderType,IUnbakedModel> models)
-
MultiLayerModel
public MultiLayerModel(com.google.common.collect.ImmutableList<com.mojang.datafixers.util.Pair<RenderType,IUnbakedModel>> models, boolean convertRenderTypes)
-
-
Method Detail
-
getTextures
public java.util.Collection<RenderMaterial> getTextures(IModelConfiguration owner, java.util.function.Function<ResourceLocation,IUnbakedModel> modelGetter, java.util.Set<com.mojang.datafixers.util.Pair<java.lang.String,java.lang.String>> missingTextureErrors)
- Specified by:
getTextures
in interfaceIModelGeometry<MultiLayerModel>
-
buildModels
private static com.google.common.collect.ImmutableList<com.mojang.datafixers.util.Pair<RenderType,IBakedModel>> buildModels(java.util.List<com.mojang.datafixers.util.Pair<RenderType,IUnbakedModel>> models, IModelTransform modelTransform, ModelBakery bakery, java.util.function.Function<RenderMaterial,TextureAtlasSprite> spriteGetter, ResourceLocation modelLocation)
-
bake
public IBakedModel bake(IModelConfiguration owner, ModelBakery bakery, java.util.function.Function<RenderMaterial,TextureAtlasSprite> spriteGetter, IModelTransform modelTransform, ItemOverrideList overrides, ResourceLocation modelLocation)
- Specified by:
bake
in interfaceIModelGeometry<MultiLayerModel>
-
-