Class WorldCreator

java.lang.Object
net.minecraft.client.gui.screen.world.WorldCreator

@Environment(CLIENT) public class WorldCreator extends Object
Mappings:
Namespace Name
official exw
intermediary net/minecraft/class_8100
named net/minecraft/client/gui/screen/world/WorldCreator
  • Field Details

    • NEW_WORLD_NAME

      private static final Text NEW_WORLD_NAME
      Mappings:
      Namespace Name Mixin selector
      official a Lexw;a:Ltj;
      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

      private final List<Consumer<WorldCreator>> listeners
      Mappings:
      Namespace Name Mixin selector
      official b Lexw;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

      private String worldName
      Mappings:
      Namespace Name Mixin selector
      official c Lexw;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

      private WorldCreator.Mode gameMode
      Mappings:
      Namespace Name Mixin selector
      official d Lexw;d:Lexw$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

      private Difficulty difficulty
      Mappings:
      Namespace Name Mixin selector
      official e Lexw;e:Lbdv;
      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

      @Nullable private @Nullable Boolean cheatsEnabled
      Mappings:
      Namespace Name Mixin selector
      official f Lexw;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

      private String seed
      Mappings:
      Namespace Name Mixin selector
      official g Lexw;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 Lexw;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 Lexw;i:Z
      intermediary field_42218 Lnet/minecraft/class_8100;field_42218:Z
      named bonusChestEnabled Lnet/minecraft/client/gui/screen/world/WorldCreator;bonusChestEnabled:Z
    • savesDirectory

      private final Path savesDirectory
      Mappings:
      Namespace Name Mixin selector
      official j Lexw;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

      private String worldDirectoryName
      Mappings:
      Namespace Name Mixin selector
      official k Lexw;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

      private GeneratorOptionsHolder generatorOptionsHolder
      Mappings:
      Namespace Name Mixin selector
      official l Lexw;l:Lexv;
      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

      private WorldCreator.WorldType worldType
      Mappings:
      Namespace Name Mixin selector
      official m Lexw;m:Lexw$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

      private final List<WorldCreator.WorldType> normalWorldTypes
      Mappings:
      Namespace Name Mixin selector
      official n Lexw;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

      private final List<WorldCreator.WorldType> extendedWorldTypes
      Mappings:
      Namespace Name Mixin selector
      official o Lexw;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

      private GameRules gameRules
      Mappings:
      Namespace Name Mixin selector
      official p Lexw;p:Lcme;
      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> Lexw;<init>(Ljava/nio/file/Path;Lexv;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

      public void addListener(Consumer<WorldCreator> listener)
      Mappings:
      Namespace Name Mixin selector
      official a Lexw;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 Lexw;a()V
      intermediary method_48695 Lnet/minecraft/class_8100;method_48695()V
      named update Lnet/minecraft/client/gui/screen/world/WorldCreator;update()V
    • setWorldName

      public void setWorldName(String worldName)
      Mappings:
      Namespace Name Mixin selector
      official a Lexw;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

      private String toDirectoryName(String worldName)
      Mappings:
      Namespace Name Mixin selector
      official c Lexw;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

      public String getWorldName()
      Mappings:
      Namespace Name Mixin selector
      official b Lexw;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

      public String getWorldDirectoryName()
      Mappings:
      Namespace Name Mixin selector
      official c Lexw;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

      public void setGameMode(WorldCreator.Mode gameMode)
      Mappings:
      Namespace Name Mixin selector
      official a Lexw;a(Lexw$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

      public WorldCreator.Mode getGameMode()
      Mappings:
      Namespace Name Mixin selector
      official d Lexw;d()Lexw$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

      public void setDifficulty(Difficulty difficulty)
      Mappings:
      Namespace Name Mixin selector
      official a Lexw;a(Lbdv;)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

      public Difficulty getDifficulty()
      Mappings:
      Namespace Name Mixin selector
      official e Lexw;e()Lbdv;
      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 Lexw;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 Lexw;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 Lexw;g()Z
      intermediary method_48724 Lnet/minecraft/class_8100;method_48724()Z
      named areCheatsEnabled Lnet/minecraft/client/gui/screen/world/WorldCreator;areCheatsEnabled()Z
    • setSeed

      public void setSeed(String seed)
      Mappings:
      Namespace Name Mixin selector
      official b Lexw;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

      public String getSeed()
      Mappings:
      Namespace Name Mixin selector
      official h Lexw;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 Lexw;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 Lexw;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 Lexw;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 Lexw;j()Z
      intermediary method_48727 Lnet/minecraft/class_8100;method_48727()Z
      named isBonusChestEnabled Lnet/minecraft/client/gui/screen/world/WorldCreator;isBonusChestEnabled()Z
    • setGeneratorOptionsHolder

      public void setGeneratorOptionsHolder(GeneratorOptionsHolder generatorOptionsHolder)
      Mappings:
      Namespace Name Mixin selector
      official a Lexw;a(Lexv;)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

      public GeneratorOptionsHolder getGeneratorOptionsHolder()
      Mappings:
      Namespace Name Mixin selector
      official k Lexw;k()Lexv;
      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

      public void applyModifier(GeneratorOptionsHolder.RegistryAwareModifier modifier)
      Mappings:
      Namespace Name Mixin selector
      official a Lexw;a(Lexv$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

      protected boolean updateDataConfiguration(DataConfiguration dataConfiguration)
      Mappings:
      Namespace Name Mixin selector
      official a Lexw;a(Lcna;)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 Lexw;l()Z
      intermediary method_48729 Lnet/minecraft/class_8100;method_48729()Z
      named isDebug Lnet/minecraft/client/gui/screen/world/WorldCreator;isDebug()Z
    • setWorldType

      public void setWorldType(WorldCreator.WorldType worldType)
      Mappings:
      Namespace Name Mixin selector
      official a Lexw;a(Lexw$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

      public WorldCreator.WorldType getWorldType()
      Mappings:
      Namespace Name Mixin selector
      official m Lexw;m()Lexw$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

      @Nullable public @Nullable LevelScreenProvider getLevelScreenProvider()
      Mappings:
      Namespace Name Mixin selector
      official n Lexw;n()Lexs;
      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

      public List<WorldCreator.WorldType> getNormalWorldTypes()
      Mappings:
      Namespace Name Mixin selector
      official o Lexw;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

      public List<WorldCreator.WorldType> getExtendedWorldTypes()
      Mappings:
      Namespace Name Mixin selector
      official p Lexw;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 Lexw;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 Lexw;a(Lexv;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 Lexw;a(Lhq;Lanv;)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

      public void setGameRules(GameRules gameRules)
      Mappings:
      Namespace Name Mixin selector
      official a Lexw;a(Lcme;)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

      public GameRules getGameRules()
      Mappings:
      Namespace Name Mixin selector
      official q Lexw;q()Lcme;
      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;