Modifier and Type | Class and Description |
---|---|
static class |
MultiLayerModel.Loader |
private static class |
MultiLayerModel.MultiLayerBakedModel |
Modifier and Type | Field and Description |
---|---|
static MultiLayerModel |
INSTANCE |
private com.google.common.collect.ImmutableMap<java.util.Optional<BlockRenderLayer>,ModelResourceLocation> |
models |
Constructor and Description |
---|
MultiLayerModel(com.google.common.collect.ImmutableMap<java.util.Optional<BlockRenderLayer>,ModelResourceLocation> models) |
Modifier and Type | Method and Description |
---|---|
IBakedModel |
bake(IModelState state,
VertexFormat format,
java.util.function.Function<ResourceLocation,TextureAtlasSprite> bakedTextureGetter) |
private static com.google.common.collect.ImmutableMap<java.util.Optional<BlockRenderLayer>,IBakedModel> |
buildModels(com.google.common.collect.ImmutableMap<java.util.Optional<BlockRenderLayer>,ModelResourceLocation> models,
IModelState state,
VertexFormat format,
java.util.function.Function<ResourceLocation,TextureAtlasSprite> bakedTextureGetter) |
java.util.Collection<ResourceLocation> |
getDependencies() |
private ModelResourceLocation |
getLocation(java.lang.String json) |
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
asVanillaModel, getClip, getDefaultState, getTextures, gui3d, retexture, smoothLighting, uvlock
public static final MultiLayerModel INSTANCE
private final com.google.common.collect.ImmutableMap<java.util.Optional<BlockRenderLayer>,ModelResourceLocation> models
public MultiLayerModel(com.google.common.collect.ImmutableMap<java.util.Optional<BlockRenderLayer>,ModelResourceLocation> models)
public java.util.Collection<ResourceLocation> getDependencies()
getDependencies
in interface IModel
private static com.google.common.collect.ImmutableMap<java.util.Optional<BlockRenderLayer>,IBakedModel> buildModels(com.google.common.collect.ImmutableMap<java.util.Optional<BlockRenderLayer>,ModelResourceLocation> models, IModelState state, VertexFormat format, java.util.function.Function<ResourceLocation,TextureAtlasSprite> bakedTextureGetter)
public IBakedModel bake(IModelState state, VertexFormat format, java.util.function.Function<ResourceLocation,TextureAtlasSprite> bakedTextureGetter)
public MultiLayerModel process(com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> customData)
IModel
private ModelResourceLocation getLocation(java.lang.String json)