Class WorldCreationUiState
java.lang.Object
net.minecraft.client.gui.screens.worldselection.WorldCreationUiState
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
static final record
-
Field Summary
Modifier and TypeFieldDescriptionprivate Boolean
private final List
<WorldCreationUiState.WorldTypeEntry> private boolean
private static final Component
private Difficulty
private GameRules
private boolean
private final List
<Consumer<WorldCreationUiState>> private String
private final List
<WorldCreationUiState.WorldTypeEntry> private final Path
private String
private WorldCreationContext
private String
-
Constructor Summary
ConstructorDescriptionWorldCreationUiState
(Path p_276024_, WorldCreationContext p_276050_, Optional<ResourceKey<WorldPreset>> p_276022_, OptionalLong p_276014_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(Consumer<WorldCreationUiState> p_267938_) private static Optional
<Holder<WorldPreset>> findPreset
(WorldCreationContext p_268025_, Optional<ResourceKey<WorldPreset>> p_268184_) private String
findResultFolder
(String p_276032_) getName()
private static Optional
<List<WorldCreationUiState.WorldTypeEntry>> getNonEmptyList
(Registry<WorldPreset> p_268296_, TagKey<WorldPreset> p_268097_) getSeed()
boolean
boolean
boolean
isDebug()
boolean
boolean
void
void
setAllowCommands
(boolean p_321586_) void
setBonusChest
(boolean p_268236_) void
setDifficulty
(Difficulty p_268032_) void
setGameMode
(WorldCreationUiState.SelectedGameMode p_268231_) void
setGameRules
(GameRules p_268203_) void
setGenerateStructures
(boolean p_268090_) void
void
void
setSettings
(WorldCreationContext p_268313_) void
setWorldType
(WorldCreationUiState.WorldTypeEntry p_268117_) protected boolean
tryUpdateDataConfiguration
(WorldDataConfiguration p_268016_) void
private void
-
Field Details
-
DEFAULT_WORLD_NAME
-
listeners
-
name
-
gameMode
-
difficulty
-
allowCommands
-
seed
-
generateStructures
private boolean generateStructures -
bonusChest
private boolean bonusChest -
savesFolder
-
targetFolder
-
settings
-
worldType
-
normalPresetList
-
altPresetList
-
gameRules
-
-
Constructor Details
-
WorldCreationUiState
public WorldCreationUiState(Path p_276024_, WorldCreationContext p_276050_, Optional<ResourceKey<WorldPreset>> p_276022_, OptionalLong p_276014_)
-
-
Method Details
-
addListener
-
onChanged
public void onChanged() -
setName
-
findResultFolder
-
getName
-
getTargetFolder
-
setGameMode
-
getGameMode
-
setDifficulty
-
getDifficulty
-
isHardcore
public boolean isHardcore() -
setAllowCommands
public void setAllowCommands(boolean p_321586_) -
isAllowCommands
public boolean isAllowCommands() -
setSeed
-
getSeed
-
setGenerateStructures
public void setGenerateStructures(boolean p_268090_) -
isGenerateStructures
public boolean isGenerateStructures() -
setBonusChest
public void setBonusChest(boolean p_268236_) -
isBonusChest
public boolean isBonusChest() -
setSettings
-
getSettings
-
updateDimensions
-
tryUpdateDataConfiguration
-
isDebug
public boolean isDebug() -
setWorldType
-
getWorldType
-
getPresetEditor
-
getNormalPresetList
-
getAltPresetList
-
updatePresetLists
private void updatePresetLists() -
findPreset
private static Optional<Holder<WorldPreset>> findPreset(WorldCreationContext p_268025_, Optional<ResourceKey<WorldPreset>> p_268184_) -
getNonEmptyList
private static Optional<List<WorldCreationUiState.WorldTypeEntry>> getNonEmptyList(Registry<WorldPreset> p_268296_, TagKey<WorldPreset> p_268097_) -
setGameRules
-
getGameRules
-