public interface IContainerDrawHandler
| Modifier and Type | Method and Description |
|---|---|
void |
onPreDraw(net.minecraft.client.gui.inventory.GuiContainer gui)
Initialize your objects and the gui for drawing.
|
void |
postRenderObjects(net.minecraft.client.gui.inventory.GuiContainer gui,
int mousex,
int mousey)
Use this to draw things that should always be on top, for example objects being held by the mouse.
|
void |
renderObjects(net.minecraft.client.gui.inventory.GuiContainer gui,
int mousex,
int mousey)
Draw your objects.
|
void |
renderSlotOverlay(net.minecraft.client.gui.inventory.GuiContainer gui,
Slot slot)
Render something over a slot after the item in the slot.
|
void |
renderSlotUnderlay(net.minecraft.client.gui.inventory.GuiContainer gui,
Slot slot)
Render something over a slot before the item in the slot.
|
void onPreDraw(net.minecraft.client.gui.inventory.GuiContainer gui)
gui - An instance of the currentscreenvoid renderObjects(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 topvoid postRenderObjects(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 topvoid renderSlotUnderlay(net.minecraft.client.gui.inventory.GuiContainer gui,
Slot slot)
gui - An instance of the currentscreenslot - The slot being rendered.void renderSlotOverlay(net.minecraft.client.gui.inventory.GuiContainer gui,
Slot slot)
gui - An instance of the currentscreenslot - The slot being rendered.