Class WorldGenSettingsComponent

java.lang.Object
net.minecraft.client.gui.screens.worldselection.WorldGenSettingsComponent
All Implemented Interfaces:
Widget

public class WorldGenSettingsComponent extends Object implements Widget
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • CUSTOM_WORLD_DESCRIPTION

      private static final Component CUSTOM_WORLD_DESCRIPTION
    • AMPLIFIED_HELP_TEXT

      private static final Component AMPLIFIED_HELP_TEXT
    • MAP_FEATURES_INFO

      private static final Component MAP_FEATURES_INFO
    • SELECT_FILE_PROMPT

      private static final Component SELECT_FILE_PROMPT
    • amplifiedWorldInfo

      private MultiLineLabel amplifiedWorldInfo
    • font

      private Font font
    • width

      private int width
    • seedEdit

      private EditBox seedEdit
    • featuresButton

      private CycleButton<Boolean> featuresButton
    • bonusItemsButton

      private CycleButton<Boolean> bonusItemsButton
    • typeButton

      private CycleButton<WorldPreset> typeButton
    • customWorldDummyButton

      private Button customWorldDummyButton
    • customizeTypeButton

      private Button customizeTypeButton
    • importSettingsButton

      private Button importSettingsButton
    • registryHolder

      private RegistryAccess.Frozen registryHolder
    • settings

      private WorldGenSettings settings
    • preset

      private Optional<WorldPreset> preset
    • seed

      private OptionalLong seed
  • Constructor Details

  • Method Details

    • init

      public void init(CreateWorldScreen p_101430_, Minecraft p_101431_, Font p_101432_)
    • importSettings

      private void importSettings(RegistryAccess.Frozen p_205469_, WorldGenSettings p_205470_)
    • tick

      public void tick()
    • render

      public void render(PoseStack p_101407_, int p_101408_, int p_101409_, float p_101410_)
      Specified by:
      render in interface Widget
    • updateSettings

      public void updateSettings(WorldGenSettings p_101405_)
    • toString

      private static String toString(OptionalLong p_101448_)
    • makeSettings

      public WorldGenSettings makeSettings(boolean p_101455_)
    • isDebug

      public boolean isDebug()
    • setVisibility

      public void setVisibility(boolean p_170288_)
    • selectWorldTypeButton

      private void selectWorldTypeButton(boolean p_170290_)
    • registryHolder

      public RegistryAccess registryHolder()
    • updateDataPacks

      void updateDataPacks(WorldStem p_205472_)
    • switchToHardcore

      public void switchToHardcore()
    • switchOutOfHardcode

      public void switchOutOfHardcode()