Class WorldCreator
java.lang.Object
net.minecraft.client.gui.screen.world.WorldCreator
- Mappings:
Namespace Name official eys
intermediary net/minecraft/class_8100
named net/minecraft/client/gui/screen/world/WorldCreator
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
static final record
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
private Difficulty
private final List<WorldCreator.WorldType>
private WorldCreator.Mode
private GameRules
private boolean
private GeneratorOptionsHolder
private final List<Consumer<WorldCreator>>
private static final Text
private final List<WorldCreator.WorldType>
private final Path
private String
private String
private String
private WorldCreator.WorldType
-
Constructor Summary
ConstructorDescriptionWorldCreator
(Path savesDirectory, GeneratorOptionsHolder generatorOptionsHolder, Optional<RegistryKey<WorldPreset>> defaultWorldType, OptionalLong seed) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(Consumer<WorldCreator> listener) void
boolean
getSeed()
private static Optional<RegistryEntry<WorldPreset>>
getWorldPreset
(GeneratorOptionsHolder generatorOptionsHolder, Optional<RegistryKey<WorldPreset>> key) private static Optional<List<WorldCreator.WorldType>>
getWorldPresetList
(Registry<WorldPreset> registry, TagKey<WorldPreset> tag) boolean
boolean
isDebug()
boolean
void
setBonusChestEnabled
(boolean bonusChestEnabled) void
setCheatsEnabled
(boolean cheatsEnabled) void
setDifficulty
(Difficulty difficulty) void
setGameMode
(WorldCreator.Mode gameMode) void
setGameRules
(GameRules gameRules) void
setGenerateStructures
(boolean generateStructures) void
setGeneratorOptionsHolder
(GeneratorOptionsHolder generatorOptionsHolder) void
void
setWorldName
(String worldName) void
setWorldType
(WorldCreator.WorldType worldType) boolean
private String
toDirectoryName
(String worldName) void
update()
protected boolean
updateDataConfiguration
(DataConfiguration dataConfiguration) private void
-
Field Details
-
NEW_WORLD_NAME
- Mappings:
Namespace Name Mixin selector official a
Leys;a:Lsw;
intermediary field_43104
Lnet/minecraft/class_8100;field_43104:Lnet/minecraft/class_2561;
named NEW_WORLD_NAME
Lnet/minecraft/client/gui/screen/world/WorldCreator;NEW_WORLD_NAME:Lnet/minecraft/text/Text;
-
listeners
- Mappings:
Namespace Name Mixin selector official b
Leys;b:Ljava/util/List;
intermediary field_42210
Lnet/minecraft/class_8100;field_42210:Ljava/util/List;
named listeners
Lnet/minecraft/client/gui/screen/world/WorldCreator;listeners:Ljava/util/List;
-
worldName
- Mappings:
Namespace Name Mixin selector official c
Leys;c:Ljava/lang/String;
intermediary field_42211
Lnet/minecraft/class_8100;field_42211:Ljava/lang/String;
named worldName
Lnet/minecraft/client/gui/screen/world/WorldCreator;worldName:Ljava/lang/String;
-
gameMode
- Mappings:
Namespace Name Mixin selector official d
Leys;d:Leys$a;
intermediary field_42213
Lnet/minecraft/class_8100;field_42213:Lnet/minecraft/class_8100$class_4539;
named gameMode
Lnet/minecraft/client/gui/screen/world/WorldCreator;gameMode:Lnet/minecraft/client/gui/screen/world/WorldCreator$Mode;
-
difficulty
- Mappings:
Namespace Name Mixin selector official e
Leys;e:Lbdr;
intermediary field_42214
Lnet/minecraft/class_8100;field_42214:Lnet/minecraft/class_1267;
named difficulty
Lnet/minecraft/client/gui/screen/world/WorldCreator;difficulty:Lnet/minecraft/world/Difficulty;
-
cheatsEnabled
- Mappings:
Namespace Name Mixin selector official f
Leys;f:Ljava/lang/Boolean;
intermediary field_42215
Lnet/minecraft/class_8100;field_42215:Ljava/lang/Boolean;
named cheatsEnabled
Lnet/minecraft/client/gui/screen/world/WorldCreator;cheatsEnabled:Ljava/lang/Boolean;
-
seed
- Mappings:
Namespace Name Mixin selector official g
Leys;g:Ljava/lang/String;
intermediary field_42216
Lnet/minecraft/class_8100;field_42216:Ljava/lang/String;
named seed
Lnet/minecraft/client/gui/screen/world/WorldCreator;seed:Ljava/lang/String;
-
generateStructures
private boolean generateStructures- Mappings:
Namespace Name Mixin selector official h
Leys;h:Z
intermediary field_42217
Lnet/minecraft/class_8100;field_42217:Z
named generateStructures
Lnet/minecraft/client/gui/screen/world/WorldCreator;generateStructures:Z
-
bonusChestEnabled
private boolean bonusChestEnabled- Mappings:
Namespace Name Mixin selector official i
Leys;i:Z
intermediary field_42218
Lnet/minecraft/class_8100;field_42218:Z
named bonusChestEnabled
Lnet/minecraft/client/gui/screen/world/WorldCreator;bonusChestEnabled:Z
-
savesDirectory
- Mappings:
Namespace Name Mixin selector official j
Leys;j:Ljava/nio/file/Path;
intermediary field_43105
Lnet/minecraft/class_8100;field_43105:Ljava/nio/file/Path;
named savesDirectory
Lnet/minecraft/client/gui/screen/world/WorldCreator;savesDirectory:Ljava/nio/file/Path;
-
worldDirectoryName
- Mappings:
Namespace Name Mixin selector official k
Leys;k:Ljava/lang/String;
intermediary field_43106
Lnet/minecraft/class_8100;field_43106:Ljava/lang/String;
named worldDirectoryName
Lnet/minecraft/client/gui/screen/world/WorldCreator;worldDirectoryName:Ljava/lang/String;
-
generatorOptionsHolder
- Mappings:
Namespace Name Mixin selector official l
Leys;l:Leyr;
intermediary field_42219
Lnet/minecraft/class_8100;field_42219:Lnet/minecraft/class_7193;
named generatorOptionsHolder
Lnet/minecraft/client/gui/screen/world/WorldCreator;generatorOptionsHolder:Lnet/minecraft/client/world/GeneratorOptionsHolder;
-
worldType
- Mappings:
Namespace Name Mixin selector official m
Leys;m:Leys$b;
intermediary field_42220
Lnet/minecraft/class_8100;field_42220:Lnet/minecraft/class_8100$class_8101;
named worldType
Lnet/minecraft/client/gui/screen/world/WorldCreator;worldType:Lnet/minecraft/client/gui/screen/world/WorldCreator$WorldType;
-
normalWorldTypes
- Mappings:
Namespace Name Mixin selector official n
Leys;n:Ljava/util/List;
intermediary field_42221
Lnet/minecraft/class_8100;field_42221:Ljava/util/List;
named normalWorldTypes
Lnet/minecraft/client/gui/screen/world/WorldCreator;normalWorldTypes:Ljava/util/List;
-
extendedWorldTypes
- Mappings:
Namespace Name Mixin selector official o
Leys;o:Ljava/util/List;
intermediary field_42222
Lnet/minecraft/class_8100;field_42222:Ljava/util/List;
named extendedWorldTypes
Lnet/minecraft/client/gui/screen/world/WorldCreator;extendedWorldTypes:Ljava/util/List;
-
gameRules
- Mappings:
Namespace Name Mixin selector official p
Leys;p:Lcmb;
intermediary field_42223
Lnet/minecraft/class_8100;field_42223:Lnet/minecraft/class_1928;
named gameRules
Lnet/minecraft/client/gui/screen/world/WorldCreator;gameRules:Lnet/minecraft/world/GameRules;
-
-
Constructor Details
-
WorldCreator
public WorldCreator(Path savesDirectory, GeneratorOptionsHolder generatorOptionsHolder, Optional<RegistryKey<WorldPreset>> defaultWorldType, OptionalLong seed) - Mappings:
Namespace Name Mixin selector official <init>
Leys;<init>(Ljava/nio/file/Path;Leyr;Ljava/util/Optional;Ljava/util/OptionalLong;)V
intermediary <init>
Lnet/minecraft/class_8100;<init>(Ljava/nio/file/Path;Lnet/minecraft/class_7193;Ljava/util/Optional;Ljava/util/OptionalLong;)V
named <init>
Lnet/minecraft/client/gui/screen/world/WorldCreator;<init>(Ljava/nio/file/Path;Lnet/minecraft/client/world/GeneratorOptionsHolder;Ljava/util/Optional;Ljava/util/OptionalLong;)V
-
-
Method Details
-
addListener
- Mappings:
Namespace Name Mixin selector official a
Leys;a(Ljava/util/function/Consumer;)V
intermediary method_48712
Lnet/minecraft/class_8100;method_48712(Ljava/util/function/Consumer;)V
named addListener
Lnet/minecraft/client/gui/screen/world/WorldCreator;addListener(Ljava/util/function/Consumer;)V
-
update
public void update()- Mappings:
Namespace Name Mixin selector official a
Leys;a()V
intermediary method_48695
Lnet/minecraft/class_8100;method_48695()V
named update
Lnet/minecraft/client/gui/screen/world/WorldCreator;update()V
-
setWorldName
- Mappings:
Namespace Name Mixin selector official a
Leys;a(Ljava/lang/String;)V
intermediary method_48710
Lnet/minecraft/class_8100;method_48710(Ljava/lang/String;)V
named setWorldName
Lnet/minecraft/client/gui/screen/world/WorldCreator;setWorldName(Ljava/lang/String;)V
-
toDirectoryName
- Mappings:
Namespace Name Mixin selector official c
Leys;c(Ljava/lang/String;)Ljava/lang/String;
intermediary method_49704
Lnet/minecraft/class_8100;method_49704(Ljava/lang/String;)Ljava/lang/String;
named toDirectoryName
Lnet/minecraft/client/gui/screen/world/WorldCreator;toDirectoryName(Ljava/lang/String;)Ljava/lang/String;
-
getWorldName
- Mappings:
Namespace Name Mixin selector official b
Leys;b()Ljava/lang/String;
intermediary method_48715
Lnet/minecraft/class_8100;method_48715()Ljava/lang/String;
named getWorldName
Lnet/minecraft/client/gui/screen/world/WorldCreator;getWorldName()Ljava/lang/String;
-
getWorldDirectoryName
- Mappings:
Namespace Name Mixin selector official c
Leys;c()Ljava/lang/String;
intermediary method_49703
Lnet/minecraft/class_8100;method_49703()Ljava/lang/String;
named getWorldDirectoryName
Lnet/minecraft/client/gui/screen/world/WorldCreator;getWorldDirectoryName()Ljava/lang/String;
-
setGameMode
- Mappings:
Namespace Name Mixin selector official a
Leys;a(Leys$a;)V
intermediary method_48704
Lnet/minecraft/class_8100;method_48704(Lnet/minecraft/class_8100$class_4539;)V
named setGameMode
Lnet/minecraft/client/gui/screen/world/WorldCreator;setGameMode(Lnet/minecraft/client/gui/screen/world/WorldCreator$Mode;)V
-
getGameMode
- Mappings:
Namespace Name Mixin selector official d
Leys;d()Leys$a;
intermediary method_48721
Lnet/minecraft/class_8100;method_48721()Lnet/minecraft/class_8100$class_4539;
named getGameMode
Lnet/minecraft/client/gui/screen/world/WorldCreator;getGameMode()Lnet/minecraft/client/gui/screen/world/WorldCreator$Mode;
-
setDifficulty
- Mappings:
Namespace Name Mixin selector official a
Leys;a(Lbdr;)V
intermediary method_48696
Lnet/minecraft/class_8100;method_48696(Lnet/minecraft/class_1267;)V
named setDifficulty
Lnet/minecraft/client/gui/screen/world/WorldCreator;setDifficulty(Lnet/minecraft/world/Difficulty;)V
-
getDifficulty
- Mappings:
Namespace Name Mixin selector official e
Leys;e()Lbdr;
intermediary method_48722
Lnet/minecraft/class_8100;method_48722()Lnet/minecraft/class_1267;
named getDifficulty
Lnet/minecraft/client/gui/screen/world/WorldCreator;getDifficulty()Lnet/minecraft/world/Difficulty;
-
isHardcore
public boolean isHardcore()- Mappings:
Namespace Name Mixin selector official f
Leys;f()Z
intermediary method_48723
Lnet/minecraft/class_8100;method_48723()Z
named isHardcore
Lnet/minecraft/client/gui/screen/world/WorldCreator;isHardcore()Z
-
setCheatsEnabled
public void setCheatsEnabled(boolean cheatsEnabled) - Mappings:
Namespace Name Mixin selector official a
Leys;a(Z)V
intermediary method_48713
Lnet/minecraft/class_8100;method_48713(Z)V
named setCheatsEnabled
Lnet/minecraft/client/gui/screen/world/WorldCreator;setCheatsEnabled(Z)V
-
areCheatsEnabled
public boolean areCheatsEnabled()- Mappings:
Namespace Name Mixin selector official g
Leys;g()Z
intermediary method_48724
Lnet/minecraft/class_8100;method_48724()Z
named areCheatsEnabled
Lnet/minecraft/client/gui/screen/world/WorldCreator;areCheatsEnabled()Z
-
setSeed
- Mappings:
Namespace Name Mixin selector official b
Leys;b(Ljava/lang/String;)V
intermediary method_48716
Lnet/minecraft/class_8100;method_48716(Ljava/lang/String;)V
named setSeed
Lnet/minecraft/client/gui/screen/world/WorldCreator;setSeed(Ljava/lang/String;)V
-
getSeed
- Mappings:
Namespace Name Mixin selector official h
Leys;h()Ljava/lang/String;
intermediary method_48725
Lnet/minecraft/class_8100;method_48725()Ljava/lang/String;
named getSeed
Lnet/minecraft/client/gui/screen/world/WorldCreator;getSeed()Ljava/lang/String;
-
setGenerateStructures
public void setGenerateStructures(boolean generateStructures) - Mappings:
Namespace Name Mixin selector official b
Leys;b(Z)V
intermediary method_48717
Lnet/minecraft/class_8100;method_48717(Z)V
named setGenerateStructures
Lnet/minecraft/client/gui/screen/world/WorldCreator;setGenerateStructures(Z)V
-
shouldGenerateStructures
public boolean shouldGenerateStructures()- Mappings:
Namespace Name Mixin selector official i
Leys;i()Z
intermediary method_48726
Lnet/minecraft/class_8100;method_48726()Z
named shouldGenerateStructures
Lnet/minecraft/client/gui/screen/world/WorldCreator;shouldGenerateStructures()Z
-
setBonusChestEnabled
public void setBonusChestEnabled(boolean bonusChestEnabled) - Mappings:
Namespace Name Mixin selector official c
Leys;c(Z)V
intermediary method_48720
Lnet/minecraft/class_8100;method_48720(Z)V
named setBonusChestEnabled
Lnet/minecraft/client/gui/screen/world/WorldCreator;setBonusChestEnabled(Z)V
-
isBonusChestEnabled
public boolean isBonusChestEnabled()- Mappings:
Namespace Name Mixin selector official j
Leys;j()Z
intermediary method_48727
Lnet/minecraft/class_8100;method_48727()Z
named isBonusChestEnabled
Lnet/minecraft/client/gui/screen/world/WorldCreator;isBonusChestEnabled()Z
-
setGeneratorOptionsHolder
- Mappings:
Namespace Name Mixin selector official a
Leys;a(Leyr;)V
intermediary method_48701
Lnet/minecraft/class_8100;method_48701(Lnet/minecraft/class_7193;)V
named setGeneratorOptionsHolder
Lnet/minecraft/client/gui/screen/world/WorldCreator;setGeneratorOptionsHolder(Lnet/minecraft/client/world/GeneratorOptionsHolder;)V
-
getGeneratorOptionsHolder
- Mappings:
Namespace Name Mixin selector official k
Leys;k()Leyr;
intermediary method_48728
Lnet/minecraft/class_8100;method_48728()Lnet/minecraft/class_7193;
named getGeneratorOptionsHolder
Lnet/minecraft/client/gui/screen/world/WorldCreator;getGeneratorOptionsHolder()Lnet/minecraft/client/world/GeneratorOptionsHolder;
-
applyModifier
- Mappings:
Namespace Name Mixin selector official a
Leys;a(Leyr$a;)V
intermediary method_48700
Lnet/minecraft/class_8100;method_48700(Lnet/minecraft/class_7193$class_7195;)V
named applyModifier
Lnet/minecraft/client/gui/screen/world/WorldCreator;applyModifier(Lnet/minecraft/client/world/GeneratorOptionsHolder$RegistryAwareModifier;)V
-
updateDataConfiguration
- Mappings:
Namespace Name Mixin selector official a
Leys;a(Lcmy;)Z
intermediary method_48698
Lnet/minecraft/class_8100;method_48698(Lnet/minecraft/class_7712;)Z
named updateDataConfiguration
Lnet/minecraft/client/gui/screen/world/WorldCreator;updateDataConfiguration(Lnet/minecraft/resource/DataConfiguration;)Z
-
isDebug
public boolean isDebug()- Mappings:
Namespace Name Mixin selector official l
Leys;l()Z
intermediary method_48729
Lnet/minecraft/class_8100;method_48729()Z
named isDebug
Lnet/minecraft/client/gui/screen/world/WorldCreator;isDebug()Z
-
setWorldType
- Mappings:
Namespace Name Mixin selector official a
Leys;a(Leys$b;)V
intermediary method_48705
Lnet/minecraft/class_8100;method_48705(Lnet/minecraft/class_8100$class_8101;)V
named setWorldType
Lnet/minecraft/client/gui/screen/world/WorldCreator;setWorldType(Lnet/minecraft/client/gui/screen/world/WorldCreator$WorldType;)V
-
getWorldType
- Mappings:
Namespace Name Mixin selector official m
Leys;m()Leys$b;
intermediary method_48730
Lnet/minecraft/class_8100;method_48730()Lnet/minecraft/class_8100$class_8101;
named getWorldType
Lnet/minecraft/client/gui/screen/world/WorldCreator;getWorldType()Lnet/minecraft/client/gui/screen/world/WorldCreator$WorldType;
-
getLevelScreenProvider
- Mappings:
Namespace Name Mixin selector official n
Leys;n()Leyo;
intermediary method_48731
Lnet/minecraft/class_8100;method_48731()Lnet/minecraft/class_5293;
named getLevelScreenProvider
Lnet/minecraft/client/gui/screen/world/WorldCreator;getLevelScreenProvider()Lnet/minecraft/client/gui/screen/world/LevelScreenProvider;
-
getNormalWorldTypes
- Mappings:
Namespace Name Mixin selector official o
Leys;o()Ljava/util/List;
intermediary method_48732
Lnet/minecraft/class_8100;method_48732()Ljava/util/List;
named getNormalWorldTypes
Lnet/minecraft/client/gui/screen/world/WorldCreator;getNormalWorldTypes()Ljava/util/List;
-
getExtendedWorldTypes
- Mappings:
Namespace Name Mixin selector official p
Leys;p()Ljava/util/List;
intermediary method_48733
Lnet/minecraft/class_8100;method_48733()Ljava/util/List;
named getExtendedWorldTypes
Lnet/minecraft/client/gui/screen/world/WorldCreator;getExtendedWorldTypes()Ljava/util/List;
-
updateWorldTypeLists
private void updateWorldTypeLists()- Mappings:
Namespace Name Mixin selector official r
Leys;r()V
intermediary method_48735
Lnet/minecraft/class_8100;method_48735()V
named updateWorldTypeLists
Lnet/minecraft/client/gui/screen/world/WorldCreator;updateWorldTypeLists()V
-
getWorldPreset
private static Optional<RegistryEntry<WorldPreset>> getWorldPreset(GeneratorOptionsHolder generatorOptionsHolder, Optional<RegistryKey<WorldPreset>> key) - Mappings:
Namespace Name Mixin selector official a
Leys;a(Leyr;Ljava/util/Optional;)Ljava/util/Optional;
intermediary method_48703
Lnet/minecraft/class_8100;method_48703(Lnet/minecraft/class_7193;Ljava/util/Optional;)Ljava/util/Optional;
named getWorldPreset
Lnet/minecraft/client/gui/screen/world/WorldCreator;getWorldPreset(Lnet/minecraft/client/world/GeneratorOptionsHolder;Ljava/util/Optional;)Ljava/util/Optional;
-
getWorldPresetList
private static Optional<List<WorldCreator.WorldType>> getWorldPresetList(Registry<WorldPreset> registry, TagKey<WorldPreset> tag) - Mappings:
Namespace Name Mixin selector official a
Leys;a(Lhr;Lanj;)Ljava/util/Optional;
intermediary method_48709
Lnet/minecraft/class_8100;method_48709(Lnet/minecraft/class_2378;Lnet/minecraft/class_6862;)Ljava/util/Optional;
named getWorldPresetList
Lnet/minecraft/client/gui/screen/world/WorldCreator;getWorldPresetList(Lnet/minecraft/registry/Registry;Lnet/minecraft/registry/tag/TagKey;)Ljava/util/Optional;
-
setGameRules
- Mappings:
Namespace Name Mixin selector official a
Leys;a(Lcmb;)V
intermediary method_48697
Lnet/minecraft/class_8100;method_48697(Lnet/minecraft/class_1928;)V
named setGameRules
Lnet/minecraft/client/gui/screen/world/WorldCreator;setGameRules(Lnet/minecraft/world/GameRules;)V
-
getGameRules
- Mappings:
Namespace Name Mixin selector official q
Leys;q()Lcmb;
intermediary method_48734
Lnet/minecraft/class_8100;method_48734()Lnet/minecraft/class_1928;
named getGameRules
Lnet/minecraft/client/gui/screen/world/WorldCreator;getGameRules()Lnet/minecraft/world/GameRules;
-