/
IItemRegistry.java
44 lines (36 loc) · 1.09 KB
/
IItemRegistry.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
32
33
34
35
36
37
38
39
40
41
42
43
44
package mezz.jei.api;
import com.google.common.collect.ImmutableList;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import javax.annotation.Nonnull;
/**
* The IItemRegistry is provided by JEI and has some useful functions related to items.
* Get the instance from {@link IModRegistry#getItemRegistry()}.
*/
public interface IItemRegistry {
/**
* Returns a list of all the ItemStacks known to JEI, including their sub-items.
*/
@Nonnull
ImmutableList<ItemStack> getItemList();
/**
* Returns a list of all the ItemStacks that can be used as fuel in a vanilla furnace.
*/
@Nonnull
ImmutableList<ItemStack> getFuels();
/**
* Returns a list of all the ItemStacks that return true to isPotionIngredient.
*/
@Nonnull
ImmutableList<ItemStack> getPotionIngredients();
/**
* Returns a mod name for the given item.
*/
@Nonnull
String getModNameForItem(@Nonnull Item item);
/**
* Returns all the items registered by a specific mod.
*/
@Nonnull
ImmutableList<ItemStack> getItemListForModId(@Nonnull String modId);
}