net.minecraft.client.gui.screens.worldselection

public class WorldCreationUiState

fsd
net.minecraft.client.gui.screens.worldselection.WorldCreationUiState
net.minecraft.class_8100
net.minecraft.client.gui.screen.world.WorldCreator
net.minecraft.src.C_267339_

Field summary

Modifier and TypeField
private static final Component
a
DEFAULT_WORLD_NAME
field_43104
NEW_WORLD_NAME
f_275748_
private final List<Consumer<WorldCreationUiState>>
b
listeners
field_42210
listeners
f_267497_
private String
c
name
field_42211
worldName
f_267359_
private WorldCreationUiState$SelectedGameMode
d
gameMode
field_42213
gameMode
f_267395_
private Difficulty
e
difficulty
field_42214
difficulty
f_267425_
private Boolean
f
allowCommands
field_42215
cheatsEnabled
f_317011_
private String
g
seed
field_42216
seed
f_267382_
private boolean
h
generateStructures
field_42217
generateStructures
f_267386_
private boolean
i
bonusChest
field_42218
bonusChestEnabled
f_267455_
private final Path
j
savesFolder
field_43105
savesDirectory
f_275760_
private String
k
targetFolder
field_43106
worldDirectoryName
f_275749_
private WorldCreationContext
l
settings
field_42219
generatorOptionsHolder
f_267426_
private WorldCreationUiState$WorldTypeEntry
m
worldType
field_42220
worldType
f_267491_
private final List<WorldCreationUiState$WorldTypeEntry>
n
normalPresetList
field_42221
normalWorldTypes
f_267439_
private final List<WorldCreationUiState$WorldTypeEntry>
o
altPresetList
field_42222
extendedWorldTypes
f_267369_
private GameRules
p
gameRules
field_42223
gameRules
f_267407_

Constructor summary

ModifierConstructor
public (Path savesDirectory, WorldCreationContext generatorOptionsHolder, Optional<ResourceKey<WorldPreset>> defaultWorldType, OptionalLong seed)

Method summary

Modifier and TypeMethod
public void
a(Consumer<fsd> arg0)
addListener(Consumer<WorldCreationUiState> arg0)
method_48712(Consumer<class_8100> arg0)
addListener(Consumer<WorldCreator> listener)
m_267755_(Consumer<C_267339_> arg0)
public void
a()
onChanged()
method_48695()
update()
m_267758_()
public void
a(String arg0)
setName(String arg0)
method_48710(String arg0)
setWorldName(String worldName)
m_267649_(String arg0)
private String
c(String arg0)
findResultFolder(String arg0)
method_49704(String arg0)
toDirectoryName(String worldName)
m_275848_(String arg0)
public String
b()
getName()
method_48715()
getWorldName()
m_267597_()
public String
c()
getTargetFolder()
method_49703()
getWorldDirectoryName()
m_275837_()
public void
a(fsd$a arg0)
setGameMode(WorldCreationUiState$SelectedGameMode arg0)
method_48704(class_8100$class_4539 arg0)
setGameMode(WorldCreator$Mode gameMode)
m_267616_(C_267339_$C_267344_ arg0)
public WorldCreationUiState$SelectedGameMode
d()
getGameMode()
method_48721()
getGameMode()
m_267761_()
public void
a(bqt arg0)
setDifficulty(Difficulty arg0)
method_48696(class_1267 arg0)
setDifficulty(Difficulty difficulty)
m_267754_(C_468_ arg0)
public Difficulty
e()
getDifficulty()
method_48722()
getDifficulty()
m_267816_()
public boolean
f()
isHardcore()
method_48723()
isHardcore()
m_267790_()
public void
a(boolean arg0)
setAllowCommands(boolean arg0)
method_48713(boolean arg0)
setCheatsEnabled(boolean cheatsEnabled)
m_321753_(boolean arg0)
public boolean
g()
isAllowCommands()
method_48724()
areCheatsEnabled()
m_324109_()
public void
b(String arg0)
setSeed(String arg0)
method_48716(String arg0)
setSeed(String seed)
m_267759_(String arg0)
public String
h()
getSeed()
method_48725()
getSeed()
m_267707_()
public void
b(boolean arg0)
setGenerateStructures(boolean arg0)
method_48717(boolean arg0)
setGenerateStructures(boolean generateStructures)
m_267770_(boolean arg0)
public boolean
i()
isGenerateStructures()
method_48726()
shouldGenerateStructures()
m_267615_()
public void
c(boolean arg0)
setBonusChest(boolean arg0)
method_48720(boolean arg0)
setBonusChestEnabled(boolean bonusChestEnabled)
m_267666_(boolean arg0)
public boolean
j()
isBonusChest()
method_48727()
isBonusChestEnabled()
m_267593_()
public void
a(fsc arg0)
setSettings(WorldCreationContext arg0)
method_48701(class_7193 arg0)
setGeneratorOptionsHolder(GeneratorOptionsHolder generatorOptionsHolder)
m_267692_(C_213386_ arg0)
public WorldCreationContext
k()
getSettings()
method_48728()
getGeneratorOptionsHolder()
m_267573_()
public void
a(fsc$a arg0)
updateDimensions(WorldCreationContext$DimensionsUpdater arg0)
method_48700(class_7193$class_7195 arg0)
applyModifier(GeneratorOptionsHolder$RegistryAwareModifier modifier)
m_267717_(C_213386_$C_243430_ arg0)
protected boolean
a(dcu arg0)
tryUpdateDataConfiguration(WorldDataConfiguration arg0)
method_48698(class_7712 arg0)
updateDataConfiguration(DataConfiguration dataConfiguration)
m_267710_(C_243530_ arg0)
public boolean
l()
isDebug()
method_48729()
isDebug()
m_267735_()
public void
a(fsd$b arg0)
setWorldType(WorldCreationUiState$WorldTypeEntry arg0)
method_48705(class_8100$class_8101 arg0)
setWorldType(WorldCreator$WorldType worldType)
m_267576_(C_267339_$C_267337_ arg0)
public WorldCreationUiState$WorldTypeEntry
m()
getWorldType()
method_48730()
getWorldType()
m_267828_()
public PresetEditor
n()
getPresetEditor()
method_48731()
getLevelScreenProvider()
m_267744_()
public List<WorldCreationUiState$WorldTypeEntry>
o()
getNormalPresetList()
method_48732()
getNormalWorldTypes()
m_267815_()
public List<WorldCreationUiState$WorldTypeEntry>
p()
getAltPresetList()
method_48733()
getExtendedWorldTypes()
m_267674_()
private void
r()
updatePresetLists()
method_48735()
updateWorldTypeLists()
m_267608_()
private static Optional<Holder<WorldPreset>>
a(fsc arg0, Optional<ale<eib>> arg1)
findPreset(WorldCreationContext arg0, Optional<ResourceKey<WorldPreset>> arg1)
method_48703(class_7193 arg0, Optional<class_5321<class_7145>> arg1)
getWorldPreset(GeneratorOptionsHolder generatorOptionsHolder, Optional<RegistryKey<WorldPreset>> key)
m_267777_(C_213386_ p_268025_, Optional<C_5264_<C_213159_>> p_268184_)
private static Optional<List<WorldCreationUiState$WorldTypeEntry>>
a(jv<eib> arg0, axf<eib> arg1)
getNonEmptyList(Registry<WorldPreset> arg0, TagKey<WorldPreset> arg1)
method_48709(class_2378<class_7145> arg0, class_6862<class_7145> arg1)
getWorldPresetList(Registry<WorldPreset> registry, TagKey<WorldPreset> tag)
m_267811_(C_4705_<C_213159_> p_268296_, C_203208_<C_213159_> p_268097_)
public void
a(dbw arg0)
setGameRules(GameRules arg0)
method_48697(class_1928 arg0)
setGameRules(GameRules gameRules)
m_267656_(C_1583_ arg0)
public GameRules
q()
getGameRules()
method_48734()
getGameRules()
m_267721_()