public class CreateWorldScreen extends Screen
Modifier and Type | Class and Description |
---|---|
(package private) static class |
CreateWorldScreen.GameMode |
Modifier and Type | Field and Description |
---|---|
private boolean |
allowCheats |
private boolean |
allowCheatsWasSetByUser |
private boolean |
alreadyGenerated |
private boolean |
bonusChestEnabled |
private Button |
btnAllowCommands |
private Button |
btnBonusItems |
private Button |
btnCreateWorld |
private Button |
btnCustomizeType |
private Button |
btnGameMode |
private Button |
btnMapFeatures |
private Button |
btnMapType |
private Button |
btnMoreOptions |
CompoundNBT |
chunkProviderSettingsJson |
private CreateWorldScreen.GameMode |
field_228197_f_ |
private CreateWorldScreen.GameMode |
field_228198_g_ |
private java.lang.String |
gameModeDesc1 |
private java.lang.String |
gameModeDesc2 |
private boolean |
generateStructuresEnabled |
private boolean |
hardCoreMode |
private boolean |
inMoreWorldOptionsDisplay |
private Screen |
parentScreen |
private java.lang.String |
saveDirName |
private int |
selectedIndex |
private java.lang.String |
worldName |
private TextFieldWidget |
worldNameField |
private java.lang.String |
worldSeed |
private TextFieldWidget |
worldSeedField |
buttons, children, font, height, itemRenderer, minecraft, passEvents, title, width
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
Constructor and Description |
---|
CreateWorldScreen(Screen p_i46320_1_) |
Modifier and Type | Method and Description |
---|---|
private void |
calcSaveDirName() |
private boolean |
canSelectCurWorldType() |
private void |
createWorld() |
private void |
func_228199_a_() |
private void |
func_228200_a_(CreateWorldScreen.GameMode p_228200_1_) |
protected void |
init() |
boolean |
keyPressed(int p_keyPressed_1_,
int p_keyPressed_2_,
int p_keyPressed_3_) |
void |
onClose() |
void |
recreateFromExistingWorld(WorldInfo original) |
void |
removed() |
void |
render(int p_render_1_,
int p_render_2_,
float p_render_3_) |
private void |
showMoreWorldOptions(boolean toggle) |
void |
tick() |
private void |
toggleMoreWorldOptions() |
addButton, children, getMinecraft, getNarrationMessage, getTitle, getTooltipFromItem, handleComponentClicked, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, renderBackground, renderBackground, renderComponentHoverEffect, renderDirtBackground, renderTooltip, renderTooltip, renderTooltip, renderTooltip, resize, sendMessage, sendMessage, setSize, shouldCloseOnEsc, wrapScreenError
getFocused, isDragging, setDragging, setFocused
blit, blit, blit, blit, blit, drawCenteredString, drawRightAlignedString, drawString, fill, fill, fillGradient, getBlitOffset, hLine, innerBlit, setBlitOffset, vLine
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
changeFocus, charTyped, func_212932_b, getEventListenerForPos, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setFocusedDefault
mouseMoved
private final Screen parentScreen
private TextFieldWidget worldNameField
private TextFieldWidget worldSeedField
private java.lang.String saveDirName
private CreateWorldScreen.GameMode field_228197_f_
@Nullable private CreateWorldScreen.GameMode field_228198_g_
private boolean generateStructuresEnabled
private boolean allowCheats
private boolean allowCheatsWasSetByUser
private boolean bonusChestEnabled
private boolean hardCoreMode
private boolean alreadyGenerated
private boolean inMoreWorldOptionsDisplay
private Button btnCreateWorld
private Button btnGameMode
private Button btnMoreOptions
private Button btnMapFeatures
private Button btnBonusItems
private Button btnMapType
private Button btnAllowCommands
private Button 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 CompoundNBT chunkProviderSettingsJson
public CreateWorldScreen(Screen p_i46320_1_)
private void func_228199_a_()
private void calcSaveDirName()
private void createWorld()
private boolean canSelectCurWorldType()
private void toggleMoreWorldOptions()
private void func_228200_a_(CreateWorldScreen.GameMode p_228200_1_)
private void showMoreWorldOptions(boolean toggle)
public boolean keyPressed(int p_keyPressed_1_, int p_keyPressed_2_, int p_keyPressed_3_)
keyPressed
in interface IGuiEventListener
keyPressed
in interface INestedGuiEventHandler
keyPressed
in class Screen
public void render(int p_render_1_, int p_render_2_, float p_render_3_)
render
in interface IRenderable
render
in class Screen
public void recreateFromExistingWorld(WorldInfo original)