public final class ItemLayerModel extends java.lang.Object implements IUnbakedModel
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(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() |
static com.google.common.collect.ImmutableList<BakedQuad> |
getQuadsForSprite(int tint,
TextureAtlasSprite sprite,
VertexFormat format,
java.util.Optional<TRSRTransformation> transform) |
java.util.Collection<ResourceLocation> |
getTextures(java.util.function.Function<ResourceLocation,IUnbakedModel> modelGetter,
java.util.Set<java.lang.String> missingTextureErrors) |
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, wait
bake
getClip, getDefaultState, gui3d, process, smoothLighting
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> getTextures(java.util.function.Function<ResourceLocation,IUnbakedModel> modelGetter, java.util.Set<java.lang.String> missingTextureErrors)
getTextures
in interface IUnbakedModel
public java.util.Collection<ResourceLocation> getOverrideLocations()
getOverrideLocations
in interface IUnbakedModel
public ItemLayerModel retexture(com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> textures)
IModel
retexture
in interface IModel<IUnbakedModel>
textures
- Newpublic 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 static com.google.common.collect.ImmutableList<BakedQuad> getQuadsForSprite(int tint, TextureAtlasSprite sprite, VertexFormat format, java.util.Optional<TRSRTransformation> transform)