| 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,
java.util.function.Function<ResourceLocation,TextureAtlasSprite> bakedTextureGetter) |
static com.google.common.collect.ImmutableList<BakedQuad> |
getQuadsForSprite(int tint,
TextureAtlasSprite sprite,
VertexFormat format,
java.util.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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetClip, getDefaultState, getDependencies, gui3d, process, smoothLighting, uvlockpublic 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> getTextures()
getTextures in interface IModelpublic ItemLayerModel retexture(com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> textures)
IModelpublic IBakedModel bake(IModelState state, VertexFormat format, java.util.function.Function<ResourceLocation,TextureAtlasSprite> bakedTextureGetter)
public static com.google.common.collect.ImmutableList<BakedQuad> getQuadsForSprite(int tint, TextureAtlasSprite sprite, VertexFormat format, java.util.Optional<TRSRTransformation> transform)