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,
UnbakedModel>> -
Constructor Summary
ConstructorDescriptionMultiLayerModel
(com.google.common.collect.ImmutableList<com.mojang.datafixers.util.Pair<RenderType, UnbakedModel>> models, boolean convertRenderTypes) MultiLayerModel
(Map<RenderType, UnbakedModel> models) -
Method Summary
Modifier and TypeMethodDescriptionbake
(IModelConfiguration owner, ModelBakery bakery, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelTransform, ItemOverrides overrides, ResourceLocation modelLocation) private static com.google.common.collect.ImmutableList<com.mojang.datafixers.util.Pair<RenderType,
BakedModel>> buildModels
(List<com.mojang.datafixers.util.Pair<RenderType, UnbakedModel>> models, ModelState modelTransform, ModelBakery bakery, Function<Material, TextureAtlasSprite> spriteGetter, ResourceLocation modelLocation) getTextures
(IModelConfiguration owner, 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.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,UnbakedModel>> models -
convertRenderTypes
private final boolean convertRenderTypes
-
-
Constructor Details
-
MultiLayerModel
-
MultiLayerModel
public MultiLayerModel(com.google.common.collect.ImmutableList<com.mojang.datafixers.util.Pair<RenderType, UnbakedModel>> models, boolean convertRenderTypes)
-
-
Method Details
-
getTextures
public Collection<Material> getTextures(IModelConfiguration owner, Function<ResourceLocation, UnbakedModel> 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,BakedModel>> buildModels(List<com.mojang.datafixers.util.Pair<RenderType, UnbakedModel>> models, ModelState modelTransform, ModelBakery bakery, Function<Material, TextureAtlasSprite> spriteGetter, ResourceLocation modelLocation) -
bake
public BakedModel bake(IModelConfiguration owner, ModelBakery bakery, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelTransform, ItemOverrides overrides, ResourceLocation modelLocation) - Specified by:
bake
in interfaceIModelGeometry<MultiLayerModel>
-