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 IModelpublic java.util.Collection<ResourceLocation> getTextures()
getTextures in interface IModelpublic IBakedModel bake(IModelState state, VertexFormat format, com.google.common.base.Function<ResourceLocation,TextureAtlasSprite> bakedTextureGetter)
public IModelState getDefaultState()
getDefaultState in interface IModelpublic MultiLayerModel process(com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> customData)
IModelCustomDataprocess in interface IModelCustomData