public interface INEIGuiHandler
| Modifier and Type | Method and Description |
|---|---|
java.util.List<TaggedInventoryArea> |
getInventoryAreas(net.minecraft.client.gui.inventory.GuiContainer gui) |
java.lang.Iterable<java.lang.Integer> |
getItemSpawnSlots(net.minecraft.client.gui.inventory.GuiContainer gui,
ItemStack item)
NEI will give the specified item to the InventoryRange returned if the player's inventory is full.
|
boolean |
handleDragNDrop(net.minecraft.client.gui.inventory.GuiContainer gui,
int mousex,
int mousey,
ItemStack draggedStack,
int button)
Handles clicks while an itemstack has been dragged from the item panel.
|
boolean |
hideItemPanelSlot(net.minecraft.client.gui.inventory.GuiContainer gui,
int x,
int y,
int w,
int h)
Used to prevent the item panel from drawing on top of other gui elements.
|
VisiblityData |
modifyVisiblity(net.minecraft.client.gui.inventory.GuiContainer gui,
VisiblityData currentVisibility) |
VisiblityData modifyVisiblity(net.minecraft.client.gui.inventory.GuiContainer gui, VisiblityData currentVisibility)
java.lang.Iterable<java.lang.Integer> getItemSpawnSlots(net.minecraft.client.gui.inventory.GuiContainer gui,
ItemStack item)
java.util.List<TaggedInventoryArea> getInventoryAreas(net.minecraft.client.gui.inventory.GuiContainer gui)
boolean handleDragNDrop(net.minecraft.client.gui.inventory.GuiContainer gui,
int mousex,
int mousey,
ItemStack draggedStack,
int button)
gui - The current gui instancemousex - The x position of the mousemousey - The y position of the mousedraggedStack - The stack being dragged from the item panelbutton - The button presedboolean hideItemPanelSlot(net.minecraft.client.gui.inventory.GuiContainer gui,
int x,
int y,
int w,
int h)
x - The x coordinate of the rectangle bounding the sloty - The y coordinate of the rectangle bounding the slotw - The w coordinate of the rectangle bounding the sloth - The h coordinate of the rectangle bounding the slot