public class GuiCustomizeWorldScreen extends GuiScreen implements GuiSlider.FormatHelper, GuiPageButtonList.GuiResponder
Modifier and Type | Field and Description |
---|---|
private GuiButton |
cancel |
private GuiButton |
confirm |
private boolean |
confirmDismissed |
private int |
confirmMode |
private GuiButton |
defaults |
private ChunkGeneratorSettings.Factory |
defaultSettings |
private GuiButton |
done |
private GuiPageButtonList |
list |
private GuiButton |
nextPage |
private com.google.common.base.Predicate<java.lang.String> |
numberFilter |
protected java.lang.String[] |
pageNames |
protected java.lang.String |
pageTitle |
private GuiCreateWorld |
parent |
private GuiButton |
presets |
private GuiButton |
previousPage |
private java.util.Random |
random |
private GuiButton |
randomize |
private ChunkGeneratorSettings.Factory |
settings |
private boolean |
settingsModified |
protected java.lang.String |
subtitle |
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 |
---|
GuiCustomizeWorldScreen(GuiScreen parentIn,
java.lang.String p_i45521_2_) |
Modifier and Type | Method and Description |
---|---|
protected void |
actionPerformed(GuiButton button) |
private void |
createPagedList() |
void |
drawScreen(int mouseX,
int mouseY,
float partialTicks) |
private void |
enterConfirmation(int confirmModeIn) |
private void |
exitConfirmation() |
private java.lang.String |
getFormattedValue(int p_175330_1_,
float p_175330_2_) |
java.lang.String |
getText(int id,
java.lang.String name,
float value) |
void |
handleMouseInput() |
void |
initGui() |
protected void |
keyTyped(char typedChar,
int keyCode) |
void |
loadValues(java.lang.String p_175324_1_) |
private void |
modifyFocusValue(float p_175327_1_) |
protected void |
mouseClicked(int mouseX,
int mouseY,
int mouseButton) |
protected void |
mouseReleased(int mouseX,
int mouseY,
int state) |
private void |
restoreDefaults() |
java.lang.String |
saveValues() |
private void |
setConfirmationControls(boolean visible) |
void |
setEntryValue(int id,
boolean value) |
void |
setEntryValue(int id,
float value) |
void |
setEntryValue(int id,
java.lang.String value) |
private void |
setSettingsModified(boolean modified) |
private void |
updatePageControls() |
addButton, confirmClicked, doesGuiPauseGame, drawBackground, drawDefaultBackground, drawHoveringText, drawHoveringText, drawHoveringText, drawWorldBackground, getClipboardString, getItemToolTip, handleComponentClick, handleComponentHover, handleInput, handleKeyboardInput, isAltKeyDown, isCtrlKeyDown, isFocused, isKeyComboCtrlA, isKeyComboCtrlC, isKeyComboCtrlV, isKeyComboCtrlX, isShiftKeyDown, mouseClickMove, onGuiClosed, onResize, renderToolTip, sendChatMessage, sendChatMessage, setClipboardString, setFocused, setGuiSize, setText, setWorldAndResolution, updateScreen
drawCenteredString, drawGradientRect, drawHorizontalLine, drawModalRectWithCustomSizedTexture, drawRect, drawScaledCustomSizeModalRect, drawString, drawTexturedModalRect, drawTexturedModalRect, drawTexturedModalRect, drawVerticalLine
private final GuiCreateWorld parent
protected java.lang.String title
protected java.lang.String subtitle
protected java.lang.String pageTitle
protected java.lang.String[] pageNames
private GuiPageButtonList list
private GuiButton done
private GuiButton randomize
private GuiButton defaults
private GuiButton previousPage
private GuiButton nextPage
private GuiButton confirm
private GuiButton cancel
private GuiButton presets
private boolean settingsModified
private int confirmMode
private boolean confirmDismissed
private final com.google.common.base.Predicate<java.lang.String> numberFilter
private final ChunkGeneratorSettings.Factory defaultSettings
private ChunkGeneratorSettings.Factory settings
private final java.util.Random random
public GuiCustomizeWorldScreen(GuiScreen parentIn, java.lang.String p_i45521_2_)
public void handleMouseInput() throws java.io.IOException
handleMouseInput
in class GuiScreen
java.io.IOException
private void createPagedList()
public java.lang.String saveValues()
public void loadValues(java.lang.String p_175324_1_)
public void setEntryValue(int id, java.lang.String value)
setEntryValue
in interface GuiPageButtonList.GuiResponder
private void setSettingsModified(boolean modified)
public java.lang.String getText(int id, java.lang.String name, float value)
getText
in interface GuiSlider.FormatHelper
private java.lang.String getFormattedValue(int p_175330_1_, float p_175330_2_)
public void setEntryValue(int id, boolean value)
setEntryValue
in interface GuiPageButtonList.GuiResponder
public void setEntryValue(int id, float value)
setEntryValue
in interface GuiPageButtonList.GuiResponder
protected void actionPerformed(GuiButton button) throws java.io.IOException
actionPerformed
in class GuiScreen
java.io.IOException
private void restoreDefaults()
private void enterConfirmation(int confirmModeIn)
private void exitConfirmation() throws java.io.IOException
java.io.IOException
private void setConfirmationControls(boolean visible)
private void updatePageControls()
protected void keyTyped(char typedChar, int keyCode) throws java.io.IOException
private void modifyFocusValue(float p_175327_1_)
protected void mouseClicked(int mouseX, int mouseY, int mouseButton) throws java.io.IOException
mouseClicked
in class GuiScreen
java.io.IOException
protected void mouseReleased(int mouseX, int mouseY, int state)
mouseReleased
in class GuiScreen
public void drawScreen(int mouseX, int mouseY, float partialTicks)
drawScreen
in class GuiScreen