public final class MultiLayerModel extends java.lang.Object implements IUnbakedModel
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<java.util.Optional<BlockRenderLayer>,ModelResourceLocation> models) |
Modifier and Type | Method and Description |
---|---|
IBakedModel |
bake(java.util.function.Function<ResourceLocation,IUnbakedModel> modelGetter,
java.util.function.Function<ResourceLocation,TextureAtlasSprite> bakedTextureGetter,
IModelState state,
boolean uvlock,
VertexFormat format) |
java.util.Collection<ResourceLocation> |
getOverrideLocations() |
java.util.Collection<ResourceLocation> |
getTextures(java.util.function.Function<ResourceLocation,IUnbakedModel> modelGetter,
java.util.Set<java.lang.String> missingTextureErrors) |
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
bake
getClip, getDefaultState, gui3d, retexture, smoothLighting
public static final MultiLayerModel INSTANCE
public MultiLayerModel(com.google.common.collect.ImmutableMap<java.util.Optional<BlockRenderLayer>,ModelResourceLocation> models)
public java.util.Collection<ResourceLocation> getOverrideLocations()
getOverrideLocations
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
public IBakedModel bake(java.util.function.Function<ResourceLocation,IUnbakedModel> modelGetter, java.util.function.Function<ResourceLocation,TextureAtlasSprite> bakedTextureGetter, IModelState state, boolean uvlock, VertexFormat format)
bake
in interface IModel<IUnbakedModel>
public MultiLayerModel process(com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> customData)
IModel
process
in interface IModel<IUnbakedModel>