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 IModelpublic java.util.Collection<ResourceLocation> getTextures()
getTextures in interface IModelpublic IModelState getDefaultState()
getDefaultState in interface IModelpublic ItemLayerModel retexture(com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> textures)
IRetexturableModelretexture in interface IRetexturableModeltextures - 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)