public abstract class GuiContainer extends GuiScreen
Modifier and Type | Field and Description |
---|---|
protected boolean |
dragSplitting |
protected java.util.Set<Slot> |
dragSplittingSlots |
protected int |
guiLeft |
protected int |
guiTop |
static ResourceLocation |
INVENTORY_BACKGROUND |
Container |
inventorySlots |
protected int |
xSize |
protected int |
ySize |
allowUserInput, buttonList, fontRendererObj, height, itemRender, labelList, mc, width
ICONS, OPTIONS_BACKGROUND, STAT_ICONS, zLevel
Constructor and Description |
---|
GuiContainer(Container inventorySlotsIn) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkHotbarKeys(int keyCode) |
boolean |
doesGuiPauseGame() |
protected abstract void |
drawGuiContainerBackgroundLayer(float partialTicks,
int mouseX,
int mouseY) |
protected void |
drawGuiContainerForegroundLayer(int mouseX,
int mouseY) |
void |
drawScreen(int mouseX,
int mouseY,
float partialTicks) |
Slot |
getSlotUnderMouse()
Returns the slot that is currently displayed under the mouse.
|
protected void |
handleMouseClick(Slot slotIn,
int slotId,
int mouseButton,
ClickType type) |
void |
initGui() |
protected boolean |
isPointInRegion(int rectX,
int rectY,
int rectWidth,
int rectHeight,
int pointX,
int pointY) |
protected void |
keyTyped(char typedChar,
int keyCode) |
protected void |
mouseClicked(int mouseX,
int mouseY,
int mouseButton) |
protected void |
mouseClickMove(int mouseX,
int mouseY,
int clickedMouseButton,
long timeSinceLastClick) |
protected void |
mouseReleased(int mouseX,
int mouseY,
int state) |
void |
onGuiClosed() |
void |
updateScreen() |
actionPerformed, confirmClicked, drawBackground, drawCreativeTabHoveringText, drawDefaultBackground, drawHoveringText, drawHoveringText, drawWorldBackground, getClipboardString, handleComponentClick, handleComponentHover, handleInput, handleKeyboardInput, handleMouseInput, isAltKeyDown, isCtrlKeyDown, isKeyComboCtrlA, isKeyComboCtrlC, isKeyComboCtrlV, isKeyComboCtrlX, isShiftKeyDown, onResize, renderToolTip, sendChatMessage, sendChatMessage, setClipboardString, setGuiSize, setText, setWorldAndResolution
drawCenteredString, drawGradientRect, drawHorizontalLine, drawModalRectWithCustomSizedTexture, drawRect, drawScaledCustomSizeModalRect, drawString, drawTexturedModalRect, drawTexturedModalRect, drawTexturedModalRect, drawVerticalLine
public static final ResourceLocation INVENTORY_BACKGROUND
protected int xSize
protected int ySize
public Container inventorySlots
protected int guiLeft
protected int guiTop
protected final java.util.Set<Slot> dragSplittingSlots
protected boolean dragSplitting
public GuiContainer(Container inventorySlotsIn)
public void drawScreen(int mouseX, int mouseY, float partialTicks)
drawScreen
in class GuiScreen
protected void drawGuiContainerForegroundLayer(int mouseX, int mouseY)
protected abstract void drawGuiContainerBackgroundLayer(float partialTicks, int mouseX, int mouseY)
protected void mouseClicked(int mouseX, int mouseY, int mouseButton) throws java.io.IOException
mouseClicked
in class GuiScreen
java.io.IOException
protected void mouseClickMove(int mouseX, int mouseY, int clickedMouseButton, long timeSinceLastClick)
mouseClickMove
in class GuiScreen
protected void mouseReleased(int mouseX, int mouseY, int state)
mouseReleased
in class GuiScreen
protected boolean isPointInRegion(int rectX, int rectY, int rectWidth, int rectHeight, int pointX, int pointY)
protected void handleMouseClick(Slot slotIn, int slotId, int mouseButton, ClickType type)
protected void keyTyped(char typedChar, int keyCode) throws java.io.IOException
protected boolean checkHotbarKeys(int keyCode)
public void onGuiClosed()
onGuiClosed
in class GuiScreen
public boolean doesGuiPauseGame()
doesGuiPauseGame
in class GuiScreen
public void updateScreen()
updateScreen
in class GuiScreen
public Slot getSlotUnderMouse()