public class GuiCreateWorld extends GuiScreen
Modifier and Type | Field and Description |
---|---|
private boolean |
allowCheats |
private boolean |
allowCheatsWasSetByUser |
private boolean |
alreadyGenerated |
private boolean |
bonusChestEnabled |
private GuiButton |
btnAllowCommands |
private GuiButton |
btnBonusItems |
private GuiButton |
btnCustomizeType |
private GuiButton |
btnGameMode |
private GuiButton |
btnMapFeatures |
private GuiButton |
btnMapType |
private GuiButton |
btnMoreOptions |
java.lang.String |
chunkProviderSettingsJson |
private static java.lang.String[] |
DISALLOWED_FILENAMES |
private java.lang.String |
gameMode |
private java.lang.String |
gameModeDesc1 |
private java.lang.String |
gameModeDesc2 |
private boolean |
generateStructuresEnabled |
private boolean |
hardCoreMode |
private boolean |
inMoreWorldOptionsDisplay |
private GuiScreen |
parentScreen |
private java.lang.String |
savedGameMode |
private java.lang.String |
saveDirName |
private int |
selectedIndex |
private java.lang.String |
worldName |
private GuiTextField |
worldNameField |
private java.lang.String |
worldSeed |
private GuiTextField |
worldSeedField |
allowUserInput, buttonList, fontRenderer, height, itemRender, keyHandled, labelList, mc, mouseHandled, selectedButton, width
ICONS, OPTIONS_BACKGROUND, STAT_ICONS, zLevel
Constructor and Description |
---|
GuiCreateWorld(GuiScreen p_i46320_1_) |
Modifier and Type | Method and Description |
---|---|
protected void |
actionPerformed(GuiButton button) |
private void |
calcSaveDirName() |
private boolean |
canSelectCurWorldType() |
void |
drawScreen(int mouseX,
int mouseY,
float partialTicks) |
static java.lang.String |
getUncollidingSaveDirName(ISaveFormat saveLoader,
java.lang.String name) |
void |
initGui() |
protected void |
keyTyped(char typedChar,
int keyCode) |
protected void |
mouseClicked(int mouseX,
int mouseY,
int mouseButton) |
void |
onGuiClosed() |
void |
recreateFromExistingWorld(WorldInfo original) |
private void |
showMoreWorldOptions(boolean toggle) |
private void |
toggleMoreWorldOptions() |
private void |
updateDisplayState() |
void |
updateScreen() |
addButton, confirmClicked, doesGuiPauseGame, drawBackground, drawDefaultBackground, drawHoveringText, drawHoveringText, drawHoveringText, drawWorldBackground, getClipboardString, getItemToolTip, handleComponentClick, handleComponentHover, handleInput, handleKeyboardInput, handleMouseInput, isAltKeyDown, isCtrlKeyDown, isFocused, isKeyComboCtrlA, isKeyComboCtrlC, isKeyComboCtrlV, isKeyComboCtrlX, isShiftKeyDown, mouseClickMove, mouseReleased, onResize, renderToolTip, sendChatMessage, sendChatMessage, setClipboardString, setFocused, setGuiSize, setText, setWorldAndResolution
drawCenteredString, drawGradientRect, drawHorizontalLine, drawModalRectWithCustomSizedTexture, drawRect, drawScaledCustomSizeModalRect, drawString, drawTexturedModalRect, drawTexturedModalRect, drawTexturedModalRect, drawVerticalLine
private final GuiScreen parentScreen
private GuiTextField worldNameField
private GuiTextField worldSeedField
private java.lang.String saveDirName
private java.lang.String gameMode
private java.lang.String savedGameMode
private boolean generateStructuresEnabled
private boolean allowCheats
private boolean allowCheatsWasSetByUser
private boolean bonusChestEnabled
private boolean hardCoreMode
private boolean alreadyGenerated
private boolean inMoreWorldOptionsDisplay
private GuiButton btnGameMode
private GuiButton btnMoreOptions
private GuiButton btnMapFeatures
private GuiButton btnBonusItems
private GuiButton btnMapType
private GuiButton btnAllowCommands
private GuiButton btnCustomizeType
private java.lang.String gameModeDesc1
private java.lang.String gameModeDesc2
private java.lang.String worldSeed
private java.lang.String worldName
private int selectedIndex
public java.lang.String chunkProviderSettingsJson
private static final java.lang.String[] DISALLOWED_FILENAMES
public GuiCreateWorld(GuiScreen p_i46320_1_)
public void updateScreen()
updateScreen
in class GuiScreen
private void calcSaveDirName()
private void updateDisplayState()
public static java.lang.String getUncollidingSaveDirName(ISaveFormat saveLoader, java.lang.String name)
public void onGuiClosed()
onGuiClosed
in class GuiScreen
protected void actionPerformed(GuiButton button) throws java.io.IOException
actionPerformed
in class GuiScreen
java.io.IOException
private boolean canSelectCurWorldType()
private void toggleMoreWorldOptions()
private void showMoreWorldOptions(boolean toggle)
protected void keyTyped(char typedChar, int keyCode) throws java.io.IOException
protected void mouseClicked(int mouseX, int mouseY, int mouseButton) throws java.io.IOException
mouseClicked
in class GuiScreen
java.io.IOException
public void drawScreen(int mouseX, int mouseY, float partialTicks)
drawScreen
in class GuiScreen
public void recreateFromExistingWorld(WorldInfo original)