public final class MultiLayerModel extends java.lang.Object implements IModelCustomData
Modifier and Type | Class and Description |
---|---|
static class |
MultiLayerModel.Loader |
Modifier and Type | Field and Description |
---|---|
static MultiLayerModel |
INSTANCE |
Constructor and Description |
---|
MultiLayerModel(com.google.common.collect.ImmutableMap<com.google.common.base.Optional<BlockRenderLayer>,ModelResourceLocation> models) |
Modifier and Type | Method and Description |
---|---|
IBakedModel |
bake(IModelState state,
VertexFormat format,
com.google.common.base.Function<ResourceLocation,TextureAtlasSprite> bakedTextureGetter) |
IModelState |
getDefaultState() |
java.util.Collection<ResourceLocation> |
getDependencies() |
java.util.Collection<ResourceLocation> |
getTextures() |
MultiLayerModel |
process(com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> customData)
Allows the model to process custom data from the variant definition.
|
public static final MultiLayerModel INSTANCE
public MultiLayerModel(com.google.common.collect.ImmutableMap<com.google.common.base.Optional<BlockRenderLayer>,ModelResourceLocation> models)
public java.util.Collection<ResourceLocation> getDependencies()
getDependencies
in interface IModel
public java.util.Collection<ResourceLocation> getTextures()
getTextures
in interface IModel
public IBakedModel bake(IModelState state, VertexFormat format, com.google.common.base.Function<ResourceLocation,TextureAtlasSprite> bakedTextureGetter)
public IModelState getDefaultState()
getDefaultState
in interface IModel
public MultiLayerModel process(com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> customData)
IModelCustomData
process
in interface IModelCustomData