public final class MultiLayerModel extends java.lang.Object implements IModelGeometry<MultiLayerModel>
RenderType
.Modifier and Type | Class and Description |
---|---|
static class |
MultiLayerModel.Loader |
private static class |
MultiLayerModel.MultiLayerBakedModel |
Modifier and Type | Field and Description |
---|---|
private static org.apache.logging.log4j.Logger |
LOGGER |
private com.google.common.collect.ImmutableMap<RenderType,IUnbakedModel> |
models |
Constructor and Description |
---|
MultiLayerModel(com.google.common.collect.ImmutableMap<RenderType,IUnbakedModel> models) |
Modifier and Type | Method and Description |
---|---|
IBakedModel |
bake(IModelConfiguration owner,
ModelBakery bakery,
java.util.function.Function<Material,TextureAtlasSprite> spriteGetter,
IModelTransform modelTransform,
ItemOverrideList overrides,
ResourceLocation modelLocation) |
private static com.google.common.collect.ImmutableMap<RenderType,IBakedModel> |
buildModels(com.google.common.collect.ImmutableMap<RenderType,IUnbakedModel> models,
IModelTransform modelTransform,
ModelBakery bakery,
java.util.function.Function<Material,TextureAtlasSprite> spriteGetter,
ResourceLocation modelLocation) |
java.util.Collection<Material> |
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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPart, getParts
private static final org.apache.logging.log4j.Logger LOGGER
private final com.google.common.collect.ImmutableMap<RenderType,IUnbakedModel> models
public MultiLayerModel(com.google.common.collect.ImmutableMap<RenderType,IUnbakedModel> models)
public java.util.Collection<Material> 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)
getTextures
in interface IModelGeometry<MultiLayerModel>
private static com.google.common.collect.ImmutableMap<RenderType,IBakedModel> buildModels(com.google.common.collect.ImmutableMap<RenderType,IUnbakedModel> models, IModelTransform modelTransform, ModelBakery bakery, java.util.function.Function<Material,TextureAtlasSprite> spriteGetter, ResourceLocation modelLocation)
public IBakedModel bake(IModelConfiguration owner, ModelBakery bakery, java.util.function.Function<Material,TextureAtlasSprite> spriteGetter, IModelTransform modelTransform, ItemOverrideList overrides, ResourceLocation modelLocation)
bake
in interface IModelGeometry<MultiLayerModel>