public class ItemOverrideList
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static ItemOverrideList |
EMPTY |
private java.util.List<IBakedModel> |
overrideBakedModels |
private java.util.List<ItemOverride> |
overrides |
Modifier | Constructor and Description |
---|---|
protected |
ItemOverrideList() |
|
ItemOverrideList(ModelBakery modelBakeryIn,
BlockModel blockModelIn,
java.util.function.Function<ResourceLocation,IUnbakedModel> modelGetter,
java.util.List<ItemOverride> itemOverridesIn)
Deprecated.
|
|
ItemOverrideList(ModelBakery modelBakeryIn,
IUnbakedModel blockModelIn,
java.util.function.Function<ResourceLocation,IUnbakedModel> modelGetter,
java.util.function.Function<Material,TextureAtlasSprite> textureGetter,
java.util.List<ItemOverride> itemOverridesIn) |
Modifier and Type | Method and Description |
---|---|
IBakedModel |
getModelWithOverrides(IBakedModel model,
ItemStack stack,
World worldIn,
LivingEntity entityIn) |
com.google.common.collect.ImmutableList<ItemOverride> |
getOverrides() |
public static final ItemOverrideList EMPTY
private final java.util.List<ItemOverride> overrides
private final java.util.List<IBakedModel> overrideBakedModels
protected ItemOverrideList()
@Deprecated public ItemOverrideList(ModelBakery modelBakeryIn, BlockModel blockModelIn, java.util.function.Function<ResourceLocation,IUnbakedModel> modelGetter, java.util.List<ItemOverride> itemOverridesIn)
public ItemOverrideList(ModelBakery modelBakeryIn, IUnbakedModel blockModelIn, java.util.function.Function<ResourceLocation,IUnbakedModel> modelGetter, java.util.function.Function<Material,TextureAtlasSprite> textureGetter, java.util.List<ItemOverride> itemOverridesIn)
@Nullable public IBakedModel getModelWithOverrides(IBakedModel model, ItemStack stack, @Nullable World worldIn, @Nullable LivingEntity entityIn)
public com.google.common.collect.ImmutableList<ItemOverride> getOverrides()