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
Nested ClassesModifier and TypeClassDescriptionstatic final classprivate static final class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanprivate static final org.apache.logging.log4j.Loggerprivate final com.google.common.collect.ImmutableList<com.mojang.datafixers.util.Pair<RenderType,UnbakedModel>> -
Constructor Summary
ConstructorsConstructorDescriptionMultiLayerModel(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, waitMethods 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:
getTexturesin 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:
bakein interfaceIModelGeometry<MultiLayerModel>
-