/
IIngredientBlacklist.java
31 lines (27 loc) · 1.05 KB
/
IIngredientBlacklist.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package mezz.jei.api.ingredients;
import mezz.jei.api.IJeiHelpers;
import net.minecraftforge.oredict.OreDictionary;
/**
* The Ingredient Blacklist allows mods to hide ingredients from JEI's ingredient list.
* Get the instance from {@link IJeiHelpers#getIngredientBlacklist()}.
*
* @since JEI 3.14.0
*/
public interface IIngredientBlacklist {
/**
* Stop JEI from displaying a specific ingredient in the ingredient list.
* Use {@link OreDictionary#WILDCARD_VALUE} meta for wildcard.
* Ingredients blacklisted with this API can't be seen in the config or in edit mode.
*/
<V> void addIngredientToBlacklist(V ingredient);
/**
* Undo blacklisting an ingredient.
* This is for mods that hide ingredients initially and reveal them when certain conditions are met.
* Ingredients blacklisted by the user in the config will remain hidden.
*/
<V> void removeIngredientFromBlacklist(V ingredient);
/**
* Returns true if the ingredient is blacklisted and will not be displayed in the ingredient list.
*/
<V> boolean isIngredientBlacklisted(V ingredient);
}