public interface IContainerObjectHandler
| Modifier and Type | Method and Description |
|---|---|
ItemStack |
getStackUnderMouse(net.minecraft.client.gui.inventory.GuiContainer gui,
int mousex,
int mousey)
Do not return an item that is handled somewhere else
|
void |
guiTick(net.minecraft.client.gui.inventory.GuiContainer gui)
Called once per tick in the gui.
|
void |
load(net.minecraft.client.gui.inventory.GuiContainer gui)
Called when the gui is shown
|
boolean |
objectUnderMouse(net.minecraft.client.gui.inventory.GuiContainer gui,
int mousex,
int mousey) |
void |
refresh(net.minecraft.client.gui.inventory.GuiContainer gui)
Called when the same gui is reshown.
|
boolean |
shouldShowTooltip(net.minecraft.client.gui.inventory.GuiContainer gui) |
void guiTick(net.minecraft.client.gui.inventory.GuiContainer gui)
gui - An instance of the currentscreenvoid refresh(net.minecraft.client.gui.inventory.GuiContainer gui)
gui - An instance of the currentscreenvoid load(net.minecraft.client.gui.inventory.GuiContainer gui)
gui - An instance of the currentscreenItemStack getStackUnderMouse(net.minecraft.client.gui.inventory.GuiContainer gui,
int mousex,
int mousey)
gui - An instance of the currentscreenmousex - The x position of the mouse in pixels from leftmousey - The y position of the mouse in pixels from topboolean objectUnderMouse(net.minecraft.client.gui.inventory.GuiContainer gui,
int mousex,
int mousey)
gui - An instance of the currentscreenmousex - The x position of the mouse in pixels from leftmousey - The y position of the mouse in pixels from topboolean shouldShowTooltip(net.minecraft.client.gui.inventory.GuiContainer gui)
gui - An instance of the currentscreen