public class GuiModalPreset extends GuiModal<GuiModalPreset>
| Modifier and Type | Class and Description |
|---|---|
static class |
GuiModalPreset.IconTexture |
static class |
GuiModalPreset.State |
BUTTON_G_WIDTH, BUTTON_HEIGHT, BUTTON_PADDING, BUTTON_S_WIDTH, buttonCancel, buttonConfirm, GUI_ID_CANCEL, GUI_ID_CONFIRM, GUI_LABEL_CANCEL, GUI_LABEL_CONFIRM, GUI_PADDING, MODAL_L_HEIGHT, MODAL_S_HEIGHT, MODAL_S_WIDTH, modalHeight, modalWidth, onCancel, onConfirm, parent, TEXT_PADDING, title| Constructor and Description |
|---|
GuiModalPreset(GuiScreenCustomizePresets parent,
java.util.function.Consumer<GuiModalPreset> onConfirm,
java.util.function.Consumer<GuiModalPreset> onCancel,
GuiModalPreset.State state) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
actionPerformed(net.minecraft.client.gui.GuiButton guiButton) |
void |
drawScreen(int mouseX,
int mouseY,
float partialTicks) |
java.lang.String |
getDescText() |
int |
getIcon() |
static GuiModalPreset.IconTexture |
getIconTexture(int ndx) |
java.lang.String |
getNameText() |
java.lang.String |
getSettingsText() |
void |
handleMouseInput() |
void |
initGui() |
protected void |
keyTyped(char character,
int keyCode) |
protected void |
mouseClicked(int mouseX,
int mouseY,
int mouseButton) |
void |
onGuiClosed() |
void |
updateScreen() |
addButton, confirmClicked, doesGuiPauseGame, drawBackground, drawDefaultBackground, drawHoveringText, drawHoveringText, drawHoveringText, drawWorldBackground, getClipboardString, getItemToolTip, handleComponentClick, handleComponentHover, handleInput, handleKeyboardInput, isAltKeyDown, isCtrlKeyDown, isFocused, isKeyComboCtrlA, isKeyComboCtrlC, isKeyComboCtrlV, isKeyComboCtrlX, isShiftKeyDown, mouseClickMove, mouseReleased, onResize, renderToolTip, sendChatMessage, sendChatMessage, setClipboardString, setFocused, setGuiSize, setText, setWorldAndResolutionpublic GuiModalPreset(GuiScreenCustomizePresets parent, java.util.function.Consumer<GuiModalPreset> onConfirm, java.util.function.Consumer<GuiModalPreset> onCancel, GuiModalPreset.State state)
public void initGui()
initGui in class GuiModal<GuiModalPreset>public void drawScreen(int mouseX,
int mouseY,
float partialTicks)
drawScreen in class GuiModal<GuiModalPreset>public void updateScreen()
updateScreen in class net.minecraft.client.gui.GuiScreenpublic void handleMouseInput()
throws java.io.IOException
handleMouseInput in class net.minecraft.client.gui.GuiScreenjava.io.IOExceptionpublic void onGuiClosed()
onGuiClosed in class net.minecraft.client.gui.GuiScreenpublic java.lang.String getNameText()
public java.lang.String getDescText()
public java.lang.String getSettingsText()
public int getIcon()
protected void actionPerformed(net.minecraft.client.gui.GuiButton guiButton)
throws java.io.IOException
actionPerformed in class GuiModal<GuiModalPreset>java.io.IOExceptionprotected void mouseClicked(int mouseX,
int mouseY,
int mouseButton)
throws java.io.IOException
mouseClicked in class net.minecraft.client.gui.GuiScreenjava.io.IOExceptionprotected void keyTyped(char character,
int keyCode)
throws java.io.IOException
keyTyped in class net.minecraft.client.gui.GuiScreenjava.io.IOExceptionpublic static GuiModalPreset.IconTexture getIconTexture(int ndx)