Class WorldCreator

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

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

    • NEW_WORLD_NAME

      private static final Text NEW_WORLD_NAME
      Mappings:
      Namespace Name Mixin selector
      named NEW_WORLD_NAME Lnet/minecraft/client/gui/screen/world/WorldCreator;NEW_WORLD_NAME:Lnet/minecraft/text/Text;
      intermediary field_43104 Lnet/minecraft/class_8100;field_43104:Lnet/minecraft/class_2561;
      official a Lftf;a:Lwy;
    • listeners

      private final List<Consumer<WorldCreator>> listeners
      Mappings:
      Namespace Name Mixin selector
      named listeners Lnet/minecraft/client/gui/screen/world/WorldCreator;listeners:Ljava/util/List;
      intermediary field_42210 Lnet/minecraft/class_8100;field_42210:Ljava/util/List;
      official b Lftf;b:Ljava/util/List;
    • worldName

      private String worldName
      Mappings:
      Namespace Name Mixin selector
      named worldName Lnet/minecraft/client/gui/screen/world/WorldCreator;worldName:Ljava/lang/String;
      intermediary field_42211 Lnet/minecraft/class_8100;field_42211:Ljava/lang/String;
      official c Lftf;c:Ljava/lang/String;
    • gameMode

      private WorldCreator.Mode gameMode
      Mappings:
      Namespace Name Mixin selector
      named gameMode Lnet/minecraft/client/gui/screen/world/WorldCreator;gameMode:Lnet/minecraft/client/gui/screen/world/WorldCreator$Mode;
      intermediary field_42213 Lnet/minecraft/class_8100;field_42213:Lnet/minecraft/class_8100$class_4539;
      official d Lftf;d:Lftf$a;
    • difficulty

      private Difficulty difficulty
      Mappings:
      Namespace Name Mixin selector
      named difficulty Lnet/minecraft/client/gui/screen/world/WorldCreator;difficulty:Lnet/minecraft/world/Difficulty;
      intermediary field_42214 Lnet/minecraft/class_8100;field_42214:Lnet/minecraft/class_1267;
      official e Lftf;e:Lbqn;
    • cheatsEnabled

      @Nullable private @Nullable Boolean cheatsEnabled
      Mappings:
      Namespace Name Mixin selector
      named cheatsEnabled Lnet/minecraft/client/gui/screen/world/WorldCreator;cheatsEnabled:Ljava/lang/Boolean;
      intermediary field_42215 Lnet/minecraft/class_8100;field_42215:Ljava/lang/Boolean;
      official f Lftf;f:Ljava/lang/Boolean;
    • seed

      private String seed
      Mappings:
      Namespace Name Mixin selector
      named seed Lnet/minecraft/client/gui/screen/world/WorldCreator;seed:Ljava/lang/String;
      intermediary field_42216 Lnet/minecraft/class_8100;field_42216:Ljava/lang/String;
      official g Lftf;g:Ljava/lang/String;
    • generateStructures

      private boolean generateStructures
      Mappings:
      Namespace Name Mixin selector
      named generateStructures Lnet/minecraft/client/gui/screen/world/WorldCreator;generateStructures:Z
      intermediary field_42217 Lnet/minecraft/class_8100;field_42217:Z
      official h Lftf;h:Z
    • bonusChestEnabled

      private boolean bonusChestEnabled
      Mappings:
      Namespace Name Mixin selector
      named bonusChestEnabled Lnet/minecraft/client/gui/screen/world/WorldCreator;bonusChestEnabled:Z
      intermediary field_42218 Lnet/minecraft/class_8100;field_42218:Z
      official i Lftf;i:Z
    • savesDirectory

      private final Path savesDirectory
      Mappings:
      Namespace Name Mixin selector
      named savesDirectory Lnet/minecraft/client/gui/screen/world/WorldCreator;savesDirectory:Ljava/nio/file/Path;
      intermediary field_43105 Lnet/minecraft/class_8100;field_43105:Ljava/nio/file/Path;
      official j Lftf;j:Ljava/nio/file/Path;
    • worldDirectoryName

      private String worldDirectoryName
      Mappings:
      Namespace Name Mixin selector
      named worldDirectoryName Lnet/minecraft/client/gui/screen/world/WorldCreator;worldDirectoryName:Ljava/lang/String;
      intermediary field_43106 Lnet/minecraft/class_8100;field_43106:Ljava/lang/String;
      official k Lftf;k:Ljava/lang/String;
    • generatorOptionsHolder

      private GeneratorOptionsHolder generatorOptionsHolder
      Mappings:
      Namespace Name Mixin selector
      named generatorOptionsHolder Lnet/minecraft/client/gui/screen/world/WorldCreator;generatorOptionsHolder:Lnet/minecraft/client/world/GeneratorOptionsHolder;
      intermediary field_42219 Lnet/minecraft/class_8100;field_42219:Lnet/minecraft/class_7193;
      official l Lftf;l:Lfte;
    • worldType

      private WorldCreator.WorldType worldType
      Mappings:
      Namespace Name Mixin selector
      named worldType Lnet/minecraft/client/gui/screen/world/WorldCreator;worldType:Lnet/minecraft/client/gui/screen/world/WorldCreator$WorldType;
      intermediary field_42220 Lnet/minecraft/class_8100;field_42220:Lnet/minecraft/class_8100$class_8101;
      official m Lftf;m:Lftf$b;
    • normalWorldTypes

      private final List<WorldCreator.WorldType> normalWorldTypes
      Mappings:
      Namespace Name Mixin selector
      named normalWorldTypes Lnet/minecraft/client/gui/screen/world/WorldCreator;normalWorldTypes:Ljava/util/List;
      intermediary field_42221 Lnet/minecraft/class_8100;field_42221:Ljava/util/List;
      official n Lftf;n:Ljava/util/List;
    • extendedWorldTypes

      private final List<WorldCreator.WorldType> extendedWorldTypes
      Mappings:
      Namespace Name Mixin selector
      named extendedWorldTypes Lnet/minecraft/client/gui/screen/world/WorldCreator;extendedWorldTypes:Ljava/util/List;
      intermediary field_42222 Lnet/minecraft/class_8100;field_42222:Ljava/util/List;
      official o Lftf;o:Ljava/util/List;
    • gameRules

      private GameRules gameRules
      Mappings:
      Namespace Name Mixin selector
      named gameRules Lnet/minecraft/client/gui/screen/world/WorldCreator;gameRules:Lnet/minecraft/world/GameRules;
      intermediary field_42223 Lnet/minecraft/class_8100;field_42223:Lnet/minecraft/class_1928;
      official p Lftf;p:Ldcq;
  • Constructor Details

    • WorldCreator

      public WorldCreator(Path savesDirectory, GeneratorOptionsHolder generatorOptionsHolder, Optional<RegistryKey<WorldPreset>> defaultWorldType, OptionalLong seed)
      Mappings:
      Namespace Name Mixin selector
      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
      intermediary <init> Lnet/minecraft/class_8100;<init>(Ljava/nio/file/Path;Lnet/minecraft/class_7193;Ljava/util/Optional;Ljava/util/OptionalLong;)V
      official <init> Lftf;<init>(Ljava/nio/file/Path;Lfte;Ljava/util/Optional;Ljava/util/OptionalLong;)V
  • Method Details

    • addListener

      public void addListener(Consumer<WorldCreator> listener)
      Mappings:
      Namespace Name Mixin selector
      named addListener Lnet/minecraft/client/gui/screen/world/WorldCreator;addListener(Ljava/util/function/Consumer;)V
      intermediary method_48712 Lnet/minecraft/class_8100;method_48712(Ljava/util/function/Consumer;)V
      official a Lftf;a(Ljava/util/function/Consumer;)V
    • update

      public void update()
      Mappings:
      Namespace Name Mixin selector
      named update Lnet/minecraft/client/gui/screen/world/WorldCreator;update()V
      intermediary method_48695 Lnet/minecraft/class_8100;method_48695()V
      official a Lftf;a()V
    • setWorldName

      public void setWorldName(String worldName)
      Mappings:
      Namespace Name Mixin selector
      named setWorldName Lnet/minecraft/client/gui/screen/world/WorldCreator;setWorldName(Ljava/lang/String;)V
      intermediary method_48710 Lnet/minecraft/class_8100;method_48710(Ljava/lang/String;)V
      official a Lftf;a(Ljava/lang/String;)V
    • toDirectoryName

      private String toDirectoryName(String worldName)
      Mappings:
      Namespace Name Mixin selector
      named toDirectoryName Lnet/minecraft/client/gui/screen/world/WorldCreator;toDirectoryName(Ljava/lang/String;)Ljava/lang/String;
      intermediary method_49704 Lnet/minecraft/class_8100;method_49704(Ljava/lang/String;)Ljava/lang/String;
      official c Lftf;c(Ljava/lang/String;)Ljava/lang/String;
    • getWorldName

      public String getWorldName()
      Mappings:
      Namespace Name Mixin selector
      named getWorldName Lnet/minecraft/client/gui/screen/world/WorldCreator;getWorldName()Ljava/lang/String;
      intermediary method_48715 Lnet/minecraft/class_8100;method_48715()Ljava/lang/String;
      official b Lftf;b()Ljava/lang/String;
    • getWorldDirectoryName

      public String getWorldDirectoryName()
      Mappings:
      Namespace Name Mixin selector
      named getWorldDirectoryName Lnet/minecraft/client/gui/screen/world/WorldCreator;getWorldDirectoryName()Ljava/lang/String;
      intermediary method_49703 Lnet/minecraft/class_8100;method_49703()Ljava/lang/String;
      official c Lftf;c()Ljava/lang/String;
    • setGameMode

      public void setGameMode(WorldCreator.Mode gameMode)
      Mappings:
      Namespace Name Mixin selector
      named setGameMode Lnet/minecraft/client/gui/screen/world/WorldCreator;setGameMode(Lnet/minecraft/client/gui/screen/world/WorldCreator$Mode;)V
      intermediary method_48704 Lnet/minecraft/class_8100;method_48704(Lnet/minecraft/class_8100$class_4539;)V
      official a Lftf;a(Lftf$a;)V
    • getGameMode

      public WorldCreator.Mode getGameMode()
      Mappings:
      Namespace Name Mixin selector
      named getGameMode Lnet/minecraft/client/gui/screen/world/WorldCreator;getGameMode()Lnet/minecraft/client/gui/screen/world/WorldCreator$Mode;
      intermediary method_48721 Lnet/minecraft/class_8100;method_48721()Lnet/minecraft/class_8100$class_4539;
      official d Lftf;d()Lftf$a;
    • setDifficulty

      public void setDifficulty(Difficulty difficulty)
      Mappings:
      Namespace Name Mixin selector
      named setDifficulty Lnet/minecraft/client/gui/screen/world/WorldCreator;setDifficulty(Lnet/minecraft/world/Difficulty;)V
      intermediary method_48696 Lnet/minecraft/class_8100;method_48696(Lnet/minecraft/class_1267;)V
      official a Lftf;a(Lbqn;)V
    • getDifficulty

      public Difficulty getDifficulty()
      Mappings:
      Namespace Name Mixin selector
      named getDifficulty Lnet/minecraft/client/gui/screen/world/WorldCreator;getDifficulty()Lnet/minecraft/world/Difficulty;
      intermediary method_48722 Lnet/minecraft/class_8100;method_48722()Lnet/minecraft/class_1267;
      official e Lftf;e()Lbqn;
    • isHardcore

      public boolean isHardcore()
      Mappings:
      Namespace Name Mixin selector
      named isHardcore Lnet/minecraft/client/gui/screen/world/WorldCreator;isHardcore()Z
      intermediary method_48723 Lnet/minecraft/class_8100;method_48723()Z
      official f Lftf;f()Z
    • setCheatsEnabled

      public void setCheatsEnabled(boolean cheatsEnabled)
      Mappings:
      Namespace Name Mixin selector
      named setCheatsEnabled Lnet/minecraft/client/gui/screen/world/WorldCreator;setCheatsEnabled(Z)V
      intermediary method_48713 Lnet/minecraft/class_8100;method_48713(Z)V
      official a Lftf;a(Z)V
    • areCheatsEnabled

      public boolean areCheatsEnabled()
      Mappings:
      Namespace Name Mixin selector
      named areCheatsEnabled Lnet/minecraft/client/gui/screen/world/WorldCreator;areCheatsEnabled()Z
      intermediary method_48724 Lnet/minecraft/class_8100;method_48724()Z
      official g Lftf;g()Z
    • setSeed

      public void setSeed(String seed)
      Mappings:
      Namespace Name Mixin selector
      named setSeed Lnet/minecraft/client/gui/screen/world/WorldCreator;setSeed(Ljava/lang/String;)V
      intermediary method_48716 Lnet/minecraft/class_8100;method_48716(Ljava/lang/String;)V
      official b Lftf;b(Ljava/lang/String;)V
    • getSeed

      public String getSeed()
      Mappings:
      Namespace Name Mixin selector
      named getSeed Lnet/minecraft/client/gui/screen/world/WorldCreator;getSeed()Ljava/lang/String;
      intermediary method_48725 Lnet/minecraft/class_8100;method_48725()Ljava/lang/String;
      official h Lftf;h()Ljava/lang/String;
    • setGenerateStructures

      public void setGenerateStructures(boolean generateStructures)
      Mappings:
      Namespace Name Mixin selector
      named setGenerateStructures Lnet/minecraft/client/gui/screen/world/WorldCreator;setGenerateStructures(Z)V
      intermediary method_48717 Lnet/minecraft/class_8100;method_48717(Z)V
      official b Lftf;b(Z)V
    • shouldGenerateStructures

      public boolean shouldGenerateStructures()
      Mappings:
      Namespace Name Mixin selector
      named shouldGenerateStructures Lnet/minecraft/client/gui/screen/world/WorldCreator;shouldGenerateStructures()Z
      intermediary method_48726 Lnet/minecraft/class_8100;method_48726()Z
      official i Lftf;i()Z
    • setBonusChestEnabled

      public void setBonusChestEnabled(boolean bonusChestEnabled)
      Mappings:
      Namespace Name Mixin selector
      named setBonusChestEnabled Lnet/minecraft/client/gui/screen/world/WorldCreator;setBonusChestEnabled(Z)V
      intermediary method_48720 Lnet/minecraft/class_8100;method_48720(Z)V
      official c Lftf;c(Z)V
    • isBonusChestEnabled

      public boolean isBonusChestEnabled()
      Mappings:
      Namespace Name Mixin selector
      named isBonusChestEnabled Lnet/minecraft/client/gui/screen/world/WorldCreator;isBonusChestEnabled()Z
      intermediary method_48727 Lnet/minecraft/class_8100;method_48727()Z
      official j Lftf;j()Z
    • setGeneratorOptionsHolder

      public void setGeneratorOptionsHolder(GeneratorOptionsHolder generatorOptionsHolder)
      Mappings:
      Namespace Name Mixin selector
      named setGeneratorOptionsHolder Lnet/minecraft/client/gui/screen/world/WorldCreator;setGeneratorOptionsHolder(Lnet/minecraft/client/world/GeneratorOptionsHolder;)V
      intermediary method_48701 Lnet/minecraft/class_8100;method_48701(Lnet/minecraft/class_7193;)V
      official a Lftf;a(Lfte;)V
    • getGeneratorOptionsHolder

      public GeneratorOptionsHolder getGeneratorOptionsHolder()
      Mappings:
      Namespace Name Mixin selector
      named getGeneratorOptionsHolder Lnet/minecraft/client/gui/screen/world/WorldCreator;getGeneratorOptionsHolder()Lnet/minecraft/client/world/GeneratorOptionsHolder;
      intermediary method_48728 Lnet/minecraft/class_8100;method_48728()Lnet/minecraft/class_7193;
      official k Lftf;k()Lfte;
    • applyModifier

      public void applyModifier(GeneratorOptionsHolder.RegistryAwareModifier modifier)
      Mappings:
      Namespace Name Mixin selector
      named applyModifier Lnet/minecraft/client/gui/screen/world/WorldCreator;applyModifier(Lnet/minecraft/client/world/GeneratorOptionsHolder$RegistryAwareModifier;)V
      intermediary method_48700 Lnet/minecraft/class_8100;method_48700(Lnet/minecraft/class_7193$class_7195;)V
      official a Lftf;a(Lfte$a;)V
    • updateDataConfiguration

      protected boolean updateDataConfiguration(DataConfiguration dataConfiguration)
      Mappings:
      Namespace Name Mixin selector
      named updateDataConfiguration Lnet/minecraft/client/gui/screen/world/WorldCreator;updateDataConfiguration(Lnet/minecraft/resource/DataConfiguration;)Z
      intermediary method_48698 Lnet/minecraft/class_8100;method_48698(Lnet/minecraft/class_7712;)Z
      official a Lftf;a(Lddp;)Z
    • isDebug

      public boolean isDebug()
      Mappings:
      Namespace Name Mixin selector
      named isDebug Lnet/minecraft/client/gui/screen/world/WorldCreator;isDebug()Z
      intermediary method_48729 Lnet/minecraft/class_8100;method_48729()Z
      official l Lftf;l()Z
    • setWorldType

      public void setWorldType(WorldCreator.WorldType worldType)
      Mappings:
      Namespace Name Mixin selector
      named setWorldType Lnet/minecraft/client/gui/screen/world/WorldCreator;setWorldType(Lnet/minecraft/client/gui/screen/world/WorldCreator$WorldType;)V
      intermediary method_48705 Lnet/minecraft/class_8100;method_48705(Lnet/minecraft/class_8100$class_8101;)V
      official a Lftf;a(Lftf$b;)V
    • getWorldType

      public WorldCreator.WorldType getWorldType()
      Mappings:
      Namespace Name Mixin selector
      named getWorldType Lnet/minecraft/client/gui/screen/world/WorldCreator;getWorldType()Lnet/minecraft/client/gui/screen/world/WorldCreator$WorldType;
      intermediary method_48730 Lnet/minecraft/class_8100;method_48730()Lnet/minecraft/class_8100$class_8101;
      official m Lftf;m()Lftf$b;
    • getLevelScreenProvider

      @Nullable public @Nullable LevelScreenProvider getLevelScreenProvider()
      Mappings:
      Namespace Name Mixin selector
      named getLevelScreenProvider Lnet/minecraft/client/gui/screen/world/WorldCreator;getLevelScreenProvider()Lnet/minecraft/client/gui/screen/world/LevelScreenProvider;
      intermediary method_48731 Lnet/minecraft/class_8100;method_48731()Lnet/minecraft/class_5293;
      official n Lftf;n()Lftb;
    • getNormalWorldTypes

      public List<WorldCreator.WorldType> getNormalWorldTypes()
      Mappings:
      Namespace Name Mixin selector
      named getNormalWorldTypes Lnet/minecraft/client/gui/screen/world/WorldCreator;getNormalWorldTypes()Ljava/util/List;
      intermediary method_48732 Lnet/minecraft/class_8100;method_48732()Ljava/util/List;
      official o Lftf;o()Ljava/util/List;
    • getExtendedWorldTypes

      public List<WorldCreator.WorldType> getExtendedWorldTypes()
      Mappings:
      Namespace Name Mixin selector
      named getExtendedWorldTypes Lnet/minecraft/client/gui/screen/world/WorldCreator;getExtendedWorldTypes()Ljava/util/List;
      intermediary method_48733 Lnet/minecraft/class_8100;method_48733()Ljava/util/List;
      official p Lftf;p()Ljava/util/List;
    • updateWorldTypeLists

      private void updateWorldTypeLists()
      Mappings:
      Namespace Name Mixin selector
      named updateWorldTypeLists Lnet/minecraft/client/gui/screen/world/WorldCreator;updateWorldTypeLists()V
      intermediary method_48735 Lnet/minecraft/class_8100;method_48735()V
      official r Lftf;r()V
    • getWorldPreset

      private static Optional<RegistryEntry<WorldPreset>> getWorldPreset(GeneratorOptionsHolder generatorOptionsHolder, Optional<RegistryKey<WorldPreset>> key)
      Mappings:
      Namespace Name Mixin selector
      named getWorldPreset Lnet/minecraft/client/gui/screen/world/WorldCreator;getWorldPreset(Lnet/minecraft/client/world/GeneratorOptionsHolder;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;
      official a Lftf;a(Lfte;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
      named getWorldPresetList Lnet/minecraft/client/gui/screen/world/WorldCreator;getWorldPresetList(Lnet/minecraft/registry/Registry;Lnet/minecraft/registry/tag/TagKey;)Ljava/util/Optional;
      intermediary method_48709 Lnet/minecraft/class_8100;method_48709(Lnet/minecraft/class_2378;Lnet/minecraft/class_6862;)Ljava/util/Optional;
      official a Lftf;a(Ljz;Lawt;)Ljava/util/Optional;
    • setGameRules

      public void setGameRules(GameRules gameRules)
      Mappings:
      Namespace Name Mixin selector
      named setGameRules Lnet/minecraft/client/gui/screen/world/WorldCreator;setGameRules(Lnet/minecraft/world/GameRules;)V
      intermediary method_48697 Lnet/minecraft/class_8100;method_48697(Lnet/minecraft/class_1928;)V
      official a Lftf;a(Ldcq;)V
    • getGameRules

      public GameRules getGameRules()
      Mappings:
      Namespace Name Mixin selector
      named getGameRules Lnet/minecraft/client/gui/screen/world/WorldCreator;getGameRules()Lnet/minecraft/world/GameRules;
      intermediary method_48734 Lnet/minecraft/class_8100;method_48734()Lnet/minecraft/class_1928;
      official q Lftf;q()Ldcq;