public final class ItemLayerModel extends java.lang.Object implements IRetexturableModel
Modifier and Type | Class and Description |
---|---|
static class |
ItemLayerModel.Loader |
Modifier and Type | Field and Description |
---|---|
static ItemLayerModel |
INSTANCE |
Constructor and Description |
---|
ItemLayerModel(com.google.common.collect.ImmutableList<ResourceLocation> textures) |
ItemLayerModel(com.google.common.collect.ImmutableList<ResourceLocation> textures,
ItemOverrideList overrides) |
ItemLayerModel(ModelBlock model) |
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() |
static com.google.common.collect.ImmutableList<BakedQuad> |
getQuadsForSprite(int tint,
TextureAtlasSprite sprite,
VertexFormat format,
com.google.common.base.Optional<TRSRTransformation> transform) |
java.util.Collection<ResourceLocation> |
getTextures() |
ItemLayerModel |
retexture(com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> textures)
Applies new textures to the model.
|
public static final ItemLayerModel INSTANCE
public ItemLayerModel(com.google.common.collect.ImmutableList<ResourceLocation> textures)
public ItemLayerModel(com.google.common.collect.ImmutableList<ResourceLocation> textures, ItemOverrideList overrides)
public ItemLayerModel(ModelBlock model)
public java.util.Collection<ResourceLocation> getDependencies()
getDependencies
in interface IModel
public java.util.Collection<ResourceLocation> getTextures()
getTextures
in interface IModel
public IModelState getDefaultState()
getDefaultState
in interface IModel
public ItemLayerModel retexture(com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> textures)
IRetexturableModel
retexture
in interface IRetexturableModel
textures
- Newpublic IBakedModel bake(IModelState state, VertexFormat format, com.google.common.base.Function<ResourceLocation,TextureAtlasSprite> bakedTextureGetter)
public static com.google.common.collect.ImmutableList<BakedQuad> getQuadsForSprite(int tint, TextureAtlasSprite sprite, VertexFormat format, com.google.common.base.Optional<TRSRTransformation> transform)