public abstract class GuiModal<T extends GuiModal<?>>
extends net.minecraft.client.gui.GuiScreen
| Modifier and Type | Field and Description |
|---|---|
protected static int |
BUTTON_G_WIDTH |
protected static int |
BUTTON_HEIGHT |
protected static int |
BUTTON_PADDING |
protected static int |
BUTTON_S_WIDTH |
protected net.minecraft.client.gui.GuiButton |
buttonCancel |
protected net.minecraft.client.gui.GuiButton |
buttonConfirm |
protected static int |
GUI_ID_CANCEL |
protected static int |
GUI_ID_CONFIRM |
protected static java.lang.String |
GUI_LABEL_CANCEL |
protected static java.lang.String |
GUI_LABEL_CONFIRM |
protected static int |
GUI_PADDING |
protected static int |
MODAL_L_HEIGHT |
protected static int |
MODAL_S_HEIGHT |
protected static int |
MODAL_S_WIDTH |
protected int |
modalHeight |
protected int |
modalWidth |
protected java.util.function.Consumer<T> |
onCancel |
protected java.util.function.Consumer<T> |
onConfirm |
protected net.minecraft.client.gui.GuiScreen |
parent |
protected static int |
TEXT_PADDING |
protected java.lang.String |
title |
| Constructor and Description |
|---|
GuiModal(net.minecraft.client.gui.GuiScreen parent,
java.lang.String title,
int modalWidth,
int modalHeight,
java.util.function.Consumer<T> onConfirm,
java.util.function.Consumer<T> onCancel) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
actionPerformed(net.minecraft.client.gui.GuiButton guiButton) |
protected void |
drawModal(int mouseX,
int mouseY,
float partialTicks) |
void |
drawScreen(int mouseX,
int mouseY,
float partialTicks) |
void |
initGui() |
addButton, confirmClicked, doesGuiPauseGame, drawBackground, drawDefaultBackground, drawHoveringText, drawHoveringText, drawHoveringText, drawWorldBackground, getClipboardString, getItemToolTip, handleComponentClick, handleComponentHover, handleInput, handleKeyboardInput, handleMouseInput, isAltKeyDown, isCtrlKeyDown, isFocused, isKeyComboCtrlA, isKeyComboCtrlC, isKeyComboCtrlV, isKeyComboCtrlX, isShiftKeyDown, keyTyped, mouseClicked, mouseClickMove, mouseReleased, onGuiClosed, onResize, renderToolTip, sendChatMessage, sendChatMessage, setClipboardString, setFocused, setGuiSize, setText, setWorldAndResolution, updateScreenprotected static final int GUI_ID_CONFIRM
protected static final int GUI_ID_CANCEL
protected static final int MODAL_S_WIDTH
protected static final int MODAL_S_HEIGHT
protected static final int MODAL_L_HEIGHT
protected static final int BUTTON_G_WIDTH
protected static final int BUTTON_S_WIDTH
protected static final int BUTTON_HEIGHT
protected static final int GUI_PADDING
protected static final int TEXT_PADDING
protected static final int BUTTON_PADDING
protected static final java.lang.String GUI_LABEL_CONFIRM
protected static final java.lang.String GUI_LABEL_CANCEL
protected final net.minecraft.client.gui.GuiScreen parent
protected final java.lang.String title
protected int modalWidth
protected int modalHeight
protected net.minecraft.client.gui.GuiButton buttonConfirm
protected net.minecraft.client.gui.GuiButton buttonCancel
public void initGui()
initGui in class net.minecraft.client.gui.GuiScreenpublic void drawScreen(int mouseX,
int mouseY,
float partialTicks)
drawScreen in class net.minecraft.client.gui.GuiScreenprotected void actionPerformed(net.minecraft.client.gui.GuiButton guiButton)
throws java.io.IOException
actionPerformed in class net.minecraft.client.gui.GuiScreenjava.io.IOExceptionprotected void drawModal(int mouseX,
int mouseY,
float partialTicks)