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 |
protected Slot |
hoveredSlot |
static ResourceLocation |
INVENTORY_BACKGROUND |
Container |
inventorySlots |
int |
slotColor |
protected int |
xSize |
protected int |
ySize |
allowUserInput, buttons, children, fontRenderer, height, itemRender, labels, mc, widthICONS, OPTIONS_BACKGROUND, STAT_ICONS, zLevel| Constructor and Description |
|---|
GuiContainer(Container inventorySlotsIn) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowCloseWithEscape() |
boolean |
doesGuiPauseGame() |
protected abstract void |
drawGuiContainerBackgroundLayer(float partialTicks,
int mouseX,
int mouseY) |
protected void |
drawGuiContainerForegroundLayer(int mouseX,
int mouseY) |
protected boolean |
func_195361_a(double p_195361_1_,
double p_195361_3_,
int p_195361_5_,
int p_195361_6_,
int p_195361_7_) |
protected boolean |
func_195363_d(int p_195363_1_,
int p_195363_2_) |
int |
getGuiLeft() |
int |
getGuiTop() |
int |
getSlotColor(int index) |
Slot |
getSlotUnderMouse() |
int |
getXSize() |
int |
getYSize() |
protected void |
handleMouseClick(Slot slotIn,
int slotId,
int mouseButton,
ClickType type) |
protected void |
initGui() |
protected boolean |
isPointInRegion(int p_195359_1_,
int p_195359_2_,
int p_195359_3_,
int p_195359_4_,
double p_195359_5_,
double p_195359_7_) |
boolean |
keyPressed(int p_keyPressed_1_,
int p_keyPressed_2_,
int p_keyPressed_3_) |
boolean |
mouseClicked(double p_mouseClicked_1_,
double p_mouseClicked_3_,
int p_mouseClicked_5_) |
boolean |
mouseDragged(double p_mouseDragged_1_,
double p_mouseDragged_3_,
int p_mouseDragged_5_,
double p_mouseDragged_6_,
double p_mouseDragged_8_) |
boolean |
mouseReleased(double p_mouseReleased_1_,
double p_mouseReleased_3_,
int p_mouseReleased_5_) |
void |
onGuiClosed() |
void |
render(int mouseX,
int mouseY,
float partialTicks) |
protected void |
renderHoveredToolTip(int p_191948_1_,
int p_191948_2_) |
void |
tick() |
addButton, close, confirmResult, drawBackground, drawDefaultBackground, drawHoveringText, drawHoveringText, drawHoveringText, drawWorldBackground, getChildren, getItemToolTip, handleComponentClick, handleComponentHover, isAltKeyDown, isCtrlKeyDown, isKeyComboCtrlA, isKeyComboCtrlC, isKeyComboCtrlV, isKeyComboCtrlX, isShiftKeyDown, onResize, renderToolTip, runOrMakeCrashReport, sendChatMessage, sendChatMessage, setText, setWorldAndResolutionfocusNext, focusOn, getFocused, setDragging, setFocuseddrawCenteredString, drawGradientRect, drawHorizontalLine, drawModalRectWithCustomSizedTexture, drawRect, drawScaledCustomSizeModalRect, drawString, drawTexturedModalRect, drawTexturedModalRect, drawTexturedModalRect, drawVerticalLineclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcharTyped, keyReleased, mouseScrolledcanFocus, focusChangedpublic static final ResourceLocation INVENTORY_BACKGROUND
protected int xSize
protected int ySize
public Container inventorySlots
protected int guiLeft
protected int guiTop
protected Slot hoveredSlot
protected final java.util.Set<Slot> dragSplittingSlots
protected boolean dragSplitting
public int slotColor
public GuiContainer(Container inventorySlotsIn)
public void render(int mouseX,
int mouseY,
float partialTicks)
protected void renderHoveredToolTip(int p_191948_1_,
int p_191948_2_)
protected void drawGuiContainerForegroundLayer(int mouseX,
int mouseY)
protected abstract void drawGuiContainerBackgroundLayer(float partialTicks,
int mouseX,
int mouseY)
public boolean mouseClicked(double p_mouseClicked_1_,
double p_mouseClicked_3_,
int p_mouseClicked_5_)
mouseClicked in interface IGuiEventListenermouseClicked in interface IGuiEventListenerDeferredmouseClicked in class GuiEventHandlerprotected boolean func_195361_a(double p_195361_1_,
double p_195361_3_,
int p_195361_5_,
int p_195361_6_,
int p_195361_7_)
public boolean mouseDragged(double p_mouseDragged_1_,
double p_mouseDragged_3_,
int p_mouseDragged_5_,
double p_mouseDragged_6_,
double p_mouseDragged_8_)
mouseDragged in interface IGuiEventListenermouseDragged in interface IGuiEventListenerDeferredmouseDragged in class GuiEventHandlerpublic boolean mouseReleased(double p_mouseReleased_1_,
double p_mouseReleased_3_,
int p_mouseReleased_5_)
mouseReleased in interface IGuiEventListenermouseReleased in interface IGuiEventListenerDeferredmouseReleased in class GuiEventHandlerprotected boolean isPointInRegion(int p_195359_1_,
int p_195359_2_,
int p_195359_3_,
int p_195359_4_,
double p_195359_5_,
double p_195359_7_)
protected void handleMouseClick(Slot slotIn, int slotId, int mouseButton, ClickType type)
public boolean allowCloseWithEscape()
allowCloseWithEscape in class GuiScreenpublic boolean keyPressed(int p_keyPressed_1_,
int p_keyPressed_2_,
int p_keyPressed_3_)
keyPressed in interface IGuiEventListenerkeyPressed in interface IGuiEventListenerDeferredkeyPressed in class GuiScreenprotected boolean func_195363_d(int p_195363_1_,
int p_195363_2_)
public void onGuiClosed()
onGuiClosed in class GuiScreenpublic boolean doesGuiPauseGame()
doesGuiPauseGame in class GuiScreen@Nullable public Slot getSlotUnderMouse()
public int getGuiLeft()
public int getGuiTop()
public int getXSize()
public int getYSize()
public int getSlotColor(int index)