@Deprecated public final class MultiLayerModel extends java.lang.Object implements IUnbakedModel
BlockRenderLayer
.Modifier and Type | Class and Description |
---|---|
static class |
MultiLayerModel.Loader
Deprecated.
|
Modifier and Type | Field and Description |
---|---|
static MultiLayerModel |
INSTANCE
Deprecated.
|
Constructor and Description |
---|
MultiLayerModel(com.google.common.collect.ImmutableMap<java.util.Optional<BlockRenderLayer>,? extends ResourceLocation> models)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
IBakedModel |
bake(ModelBakery bakery,
java.util.function.Function<ResourceLocation,TextureAtlasSprite> spriteGetter,
ISprite sprite,
VertexFormat format)
Deprecated.
|
java.util.Collection<ResourceLocation> |
getDependencies()
Deprecated.
|
java.util.Collection<ResourceLocation> |
getTextures(java.util.function.Function<ResourceLocation,IUnbakedModel> modelGetter,
java.util.Set<java.lang.String> missingTextureErrors)
Deprecated.
|
MultiLayerModel |
process(com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> customData)
Deprecated.
Allows the model to process custom data from the variant definition.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
bake
getDefaultState, gui3d, retexture, smoothLighting
getClip
public static final MultiLayerModel INSTANCE
public MultiLayerModel(com.google.common.collect.ImmutableMap<java.util.Optional<BlockRenderLayer>,? extends ResourceLocation> models)
public java.util.Collection<ResourceLocation> getDependencies()
getDependencies
in interface IUnbakedModel
public java.util.Collection<ResourceLocation> getTextures(java.util.function.Function<ResourceLocation,IUnbakedModel> modelGetter, java.util.Set<java.lang.String> missingTextureErrors)
getTextures
in interface IUnbakedModel
@Nullable public IBakedModel bake(ModelBakery bakery, java.util.function.Function<ResourceLocation,TextureAtlasSprite> spriteGetter, ISprite sprite, VertexFormat format)
bake
in interface IForgeUnbakedModel
spriteGetter
- Where textures will be looked up when bakingsprite
- Transforms to apply while baking. Usually will be an instance of IModelState
.public MultiLayerModel process(com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> customData)
IModel
process
in interface IModel<IUnbakedModel>