public class GuiYesNo extends GuiScreen
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
cancelButtonText
The text shown for the second button in GuiYesNo
|
protected java.lang.String |
confirmButtonText
The text shown for the first button in GuiYesNo
|
protected java.lang.String |
messageLine1 |
protected int |
parentButtonClickedId |
protected GuiYesNoCallback |
parentScreen
A reference to the screen object that created this.
|
allowUserInput, buttonList, fontRendererObj, height, itemRender, labelList, mc, width
icons, optionsBackground, statIcons, zLevel
Constructor and Description |
---|
GuiYesNo(GuiYesNoCallback p_i1082_1_,
java.lang.String p_i1082_2_,
java.lang.String p_i1082_3_,
int p_i1082_4_) |
GuiYesNo(GuiYesNoCallback p_i1083_1_,
java.lang.String p_i1083_2_,
java.lang.String p_i1083_3_,
java.lang.String p_i1083_4_,
java.lang.String p_i1083_5_,
int p_i1083_6_) |
Modifier and Type | Method and Description |
---|---|
protected void |
actionPerformed(GuiButton button)
Called by the controls from the buttonList when activated.
|
void |
drawScreen(int mouseX,
int mouseY,
float partialTicks)
Draws the screen and all the components in it.
|
void |
initGui()
Adds the buttons (and other controls) to the screen in question.
|
void |
setButtonDelay(int p_146350_1_)
Sets the number of ticks to wait before enabling the buttons.
|
void |
updateScreen()
Called from the main game loop to update the screen.
|
confirmClicked, doesGuiPauseGame, drawBackground, drawCreativeTabHoveringText, drawDefaultBackground, drawHoveringText, drawHoveringText, drawWorldBackground, func_183500_a, getClipboardString, handleComponentClick, handleComponentHover, handleInput, handleKeyboardInput, handleMouseInput, isAltKeyDown, isCtrlKeyDown, isKeyComboCtrlA, isKeyComboCtrlC, isKeyComboCtrlV, isKeyComboCtrlX, isShiftKeyDown, keyTyped, mouseClicked, mouseClickMove, mouseReleased, onGuiClosed, onResize, renderToolTip, sendChatMessage, sendChatMessage, setClipboardString, setText, setWorldAndResolution
drawCenteredString, drawGradientRect, drawHorizontalLine, drawModalRectWithCustomSizedTexture, drawRect, drawScaledCustomSizeModalRect, drawString, drawTexturedModalRect, drawTexturedModalRect, drawTexturedModalRect, drawVerticalLine
protected GuiYesNoCallback parentScreen
protected java.lang.String messageLine1
protected java.lang.String confirmButtonText
protected java.lang.String cancelButtonText
protected int parentButtonClickedId
public GuiYesNo(GuiYesNoCallback p_i1082_1_, java.lang.String p_i1082_2_, java.lang.String p_i1082_3_, int p_i1082_4_)
public GuiYesNo(GuiYesNoCallback p_i1083_1_, java.lang.String p_i1083_2_, java.lang.String p_i1083_3_, java.lang.String p_i1083_4_, java.lang.String p_i1083_5_, int p_i1083_6_)
public void initGui()
protected void actionPerformed(GuiButton button) throws java.io.IOException
actionPerformed
in class GuiScreen
java.io.IOException
public void drawScreen(int mouseX, int mouseY, float partialTicks)
drawScreen
in class GuiScreen
public void setButtonDelay(int p_146350_1_)
public void updateScreen()
updateScreen
in class GuiScreen