public class GuiOptions extends GuiScreen
Modifier and Type | Field and Description |
---|---|
private GuiButton |
difficultyButton |
private GuiScreen |
lastScreen |
private GuiLockIconButton |
lockButton |
private static GameSettings.Options[] |
SCREEN_OPTIONS |
private GameSettings |
settings |
protected java.lang.String |
title |
allowUserInput, buttonList, fontRenderer, height, itemRender, keyHandled, labelList, mc, mouseHandled, selectedButton, width
ICONS, OPTIONS_BACKGROUND, STAT_ICONS, zLevel
Constructor and Description |
---|
GuiOptions(GuiScreen p_i1046_1_,
GameSettings p_i1046_2_) |
Modifier and Type | Method and Description |
---|---|
protected void |
actionPerformed(GuiButton button) |
void |
confirmClicked(boolean result,
int id) |
void |
drawScreen(int mouseX,
int mouseY,
float partialTicks) |
java.lang.String |
getDifficultyText(EnumDifficulty p_175355_1_) |
void |
initGui() |
protected void |
keyTyped(char typedChar,
int keyCode) |
addButton, doesGuiPauseGame, drawBackground, drawDefaultBackground, drawHoveringText, drawHoveringText, drawHoveringText, drawWorldBackground, getClipboardString, getItemToolTip, handleComponentClick, handleComponentHover, handleInput, handleKeyboardInput, handleMouseInput, isAltKeyDown, isCtrlKeyDown, isFocused, isKeyComboCtrlA, isKeyComboCtrlC, isKeyComboCtrlV, isKeyComboCtrlX, isShiftKeyDown, mouseClicked, mouseClickMove, mouseReleased, onGuiClosed, onResize, renderToolTip, sendChatMessage, sendChatMessage, setClipboardString, setFocused, setGuiSize, setText, setWorldAndResolution, updateScreen
drawCenteredString, drawGradientRect, drawHorizontalLine, drawModalRectWithCustomSizedTexture, drawRect, drawScaledCustomSizeModalRect, drawString, drawTexturedModalRect, drawTexturedModalRect, drawTexturedModalRect, drawVerticalLine
private static final GameSettings.Options[] SCREEN_OPTIONS
private final GuiScreen lastScreen
private final GameSettings settings
private GuiButton difficultyButton
private GuiLockIconButton lockButton
protected java.lang.String title
public GuiOptions(GuiScreen p_i1046_1_, GameSettings p_i1046_2_)
public java.lang.String getDifficultyText(EnumDifficulty p_175355_1_)
public void confirmClicked(boolean result, int id)
confirmClicked
in interface GuiYesNoCallback
confirmClicked
in class GuiScreen
protected void keyTyped(char typedChar, int keyCode) throws java.io.IOException
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