/
IItemListOverlay.java
45 lines (36 loc) · 1.14 KB
/
IItemListOverlay.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
45
package mezz.jei.api;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import com.google.common.collect.ImmutableList;
import net.minecraft.item.ItemStack;
import java.util.Collection;
/**
* The IItemListOverlay is JEI's gui that displays all the items next to an open container gui.
* Use this interface to get information from and interact with it.
* Get the instance from {@link IJeiRuntime#getItemListOverlay()}.
*/
public interface IItemListOverlay {
/**
* @return the stack that's currently under the mouse, or null if there is none
*/
@Nullable
ItemStack getStackUnderMouse();
/**
* Set the search filter string for the item list.
*/
void setFilterText(@Nonnull String filterText);
/**
* @return the current search filter string for the item list
*/
@Nonnull
String getFilterText();
/**
* @return a list containing all currently visible stacks. If JEI is hidden, the list will be empty.
*/
@Nonnull
ImmutableList<ItemStack> getVisibleStacks();
/**
* Tells JEI which stacks to highlight
*/
void highlightStacks(@Nonnull Collection<ItemStack> stacks);
}