Class PresetsScreen

All Implemented Interfaces:
Drawable, Element, ParentElement

@Environment(CLIENT) public class PresetsScreen extends Screen
Mappings:
Namespace Name
official eam
intermediary net/minecraft/class_430
named net/minecraft/client/gui/screen/PresetsScreen
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official a Leam;a:Lorg/apache/logging/log4j/Logger;
      intermediary field_25043 Lnet/minecraft/class_430;field_25043:Lorg/apache/logging/log4j/Logger;
      named LOGGER Lnet/minecraft/client/gui/screen/PresetsScreen;LOGGER:Lorg/apache/logging/log4j/Logger;
    • field_32263

      private static final int field_32263
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Leam;b:I
      intermediary field_32263 Lnet/minecraft/class_430;field_32263:I
      named field_32263 Lnet/minecraft/client/gui/screen/PresetsScreen;field_32263:I
    • field_32264

      private static final int field_32264
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official c Leam;c:I
      intermediary field_32264 Lnet/minecraft/class_430;field_32264:I
      named field_32264 Lnet/minecraft/client/gui/screen/PresetsScreen;field_32264:I
    • field_32265

      private static final int field_32265
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official n Leam;n:I
      intermediary field_32265 Lnet/minecraft/class_430;field_32265:I
      named field_32265 Lnet/minecraft/client/gui/screen/PresetsScreen;field_32265:I
    • field_32266

      private static final int field_32266
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official o Leam;o:I
      intermediary field_32266 Lnet/minecraft/class_430;field_32266:I
      named field_32266 Lnet/minecraft/client/gui/screen/PresetsScreen;field_32266:I
    • field_32267

      private static final int field_32267
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official p Leam;p:I
      intermediary field_32267 Lnet/minecraft/class_430;field_32267:I
      named field_32267 Lnet/minecraft/client/gui/screen/PresetsScreen;field_32267:I
    • field_32268

      private static final int field_32268
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official q Leam;q:I
      intermediary field_32268 Lnet/minecraft/class_430;field_32268:I
      named field_32268 Lnet/minecraft/client/gui/screen/PresetsScreen;field_32268:I
    • field_32269

      private static final int field_32269
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official r Leam;r:I
      intermediary field_32269 Lnet/minecraft/class_430;field_32269:I
      named field_32269 Lnet/minecraft/client/gui/screen/PresetsScreen;field_32269:I
    • PRESETS

      static final List<PresetsScreen.SuperflatPreset> PRESETS
      Mappings:
      Namespace Name Mixin selector
      official s Leam;s:Ljava/util/List;
      intermediary field_2518 Lnet/minecraft/class_430;field_2518:Ljava/util/List;
      named PRESETS Lnet/minecraft/client/gui/screen/PresetsScreen;PRESETS:Ljava/util/List;
    • BIOME_KEY

      private static final RegistryKey<Biome> BIOME_KEY
      Mappings:
      Namespace Name Mixin selector
      official t Leam;t:Lwv;
      intermediary field_27985 Lnet/minecraft/class_430;field_27985:Lnet/minecraft/class_5321;
      named BIOME_KEY Lnet/minecraft/client/gui/screen/PresetsScreen;BIOME_KEY:Lnet/minecraft/util/registry/RegistryKey;
    • parent

      Mappings:
      Namespace Name Mixin selector
      official u Leam;u:Ldzr;
      intermediary field_2519 Lnet/minecraft/class_430;field_2519:Lnet/minecraft/class_413;
      named parent Lnet/minecraft/client/gui/screen/PresetsScreen;parent:Lnet/minecraft/client/gui/screen/CustomizeFlatLevelScreen;
    • shareText

      private Text shareText
      Mappings:
      Namespace Name Mixin selector
      official v Leam;v:Los;
      intermediary field_2520 Lnet/minecraft/class_430;field_2520:Lnet/minecraft/class_2561;
      named shareText Lnet/minecraft/client/gui/screen/PresetsScreen;shareText:Lnet/minecraft/text/Text;
    • listText

      private Text listText
      Mappings:
      Namespace Name Mixin selector
      official w Leam;w:Los;
      intermediary field_2524 Lnet/minecraft/class_430;field_2524:Lnet/minecraft/class_2561;
      named listText Lnet/minecraft/client/gui/screen/PresetsScreen;listText:Lnet/minecraft/text/Text;
    • listWidget

      Mappings:
      Namespace Name Mixin selector
      official x Leam;x:Leam$b;
      intermediary field_2521 Lnet/minecraft/class_430;field_2521:Lnet/minecraft/class_430$class_4196;
      named listWidget Lnet/minecraft/client/gui/screen/PresetsScreen;listWidget:Lnet/minecraft/client/gui/screen/PresetsScreen$SuperflatPresetsListWidget;
    • selectPresetButton

      private ButtonWidget selectPresetButton
      Mappings:
      Namespace Name Mixin selector
      official y Leam;y:Ldwz;
      intermediary field_2525 Lnet/minecraft/class_430;field_2525:Lnet/minecraft/class_4185;
      named selectPresetButton Lnet/minecraft/client/gui/screen/PresetsScreen;selectPresetButton:Lnet/minecraft/client/gui/widget/ButtonWidget;
    • customPresetField

      TextFieldWidget customPresetField
      Mappings:
      Namespace Name Mixin selector
      official z Leam;z:Ldxh;
      intermediary field_2523 Lnet/minecraft/class_430;field_2523:Lnet/minecraft/class_342;
      named customPresetField Lnet/minecraft/client/gui/screen/PresetsScreen;customPresetField:Lnet/minecraft/client/gui/widget/TextFieldWidget;
    • config

      Mappings:
      Namespace Name Mixin selector
      official A Leam;A:Lcyw;
      intermediary field_25044 Lnet/minecraft/class_430;field_25044:Lnet/minecraft/class_3232;
      named config Lnet/minecraft/client/gui/screen/PresetsScreen;config:Lnet/minecraft/world/gen/chunk/FlatChunkGeneratorConfig;
  • Constructor Details

    • PresetsScreen

      public PresetsScreen(CustomizeFlatLevelScreen parent)
      Mappings:
      Namespace Name Mixin selector
      official <init> Leam;<init>(Ldzr;)V
      intermediary <init> Lnet/minecraft/class_430;<init>(Lnet/minecraft/class_413;)V
      named <init> Lnet/minecraft/client/gui/screen/PresetsScreen;<init>(Lnet/minecraft/client/gui/screen/CustomizeFlatLevelScreen;)V
  • Method Details

    • parseLayerString

      @Nullable private static @Nullable FlatChunkGeneratorLayer parseLayerString(String layer, int layerStartHeight)
      Parse a string like "60*minecraft:stone" to a FlatChunkGeneratorLayer.
      Mappings:
      Namespace Name Mixin selector
      official a Leam;a(Ljava/lang/String;I)Lcyv;
      intermediary method_29059 Lnet/minecraft/class_430;method_29059(Ljava/lang/String;I)Lnet/minecraft/class_3229;
      named parseLayerString Lnet/minecraft/client/gui/screen/PresetsScreen;parseLayerString(Ljava/lang/String;I)Lnet/minecraft/world/gen/chunk/FlatChunkGeneratorLayer;
    • parsePresetLayersString

      private static List<FlatChunkGeneratorLayer> parsePresetLayersString(String layers)
      Parse a string like "minecraft:bedrock,3*minecraft:dirt,minecraft:grass_block" to a list of FlatChunkGeneratorLayer.
      Mappings:
      Namespace Name Mixin selector
      official b Leam;b(Ljava/lang/String;)Ljava/util/List;
      intermediary method_29058 Lnet/minecraft/class_430;method_29058(Ljava/lang/String;)Ljava/util/List;
      named parsePresetLayersString Lnet/minecraft/client/gui/screen/PresetsScreen;parsePresetLayersString(Ljava/lang/String;)Ljava/util/List;
    • parsePresetString

      public static FlatChunkGeneratorConfig parsePresetString(Registry<Biome> biomeRegistry, String preset, FlatChunkGeneratorConfig generatorConfig)
      Mappings:
      Namespace Name Mixin selector
      official a Leam;a(Lgw;Ljava/lang/String;Lcyw;)Lcyw;
      intermediary method_29060 Lnet/minecraft/class_430;method_29060(Lnet/minecraft/class_2378;Ljava/lang/String;Lnet/minecraft/class_3232;)Lnet/minecraft/class_3232;
      named parsePresetString Lnet/minecraft/client/gui/screen/PresetsScreen;parsePresetString(Lnet/minecraft/util/registry/Registry;Ljava/lang/String;Lnet/minecraft/world/gen/chunk/FlatChunkGeneratorConfig;)Lnet/minecraft/world/gen/chunk/FlatChunkGeneratorConfig;
    • getGeneratorConfigString

      static String getGeneratorConfigString(Registry<Biome> biomeRegistry, FlatChunkGeneratorConfig generatorConfig)
      Mappings:
      Namespace Name Mixin selector
      official a Leam;a(Lgw;Lcyw;)Ljava/lang/String;
      intermediary method_29062 Lnet/minecraft/class_430;method_29062(Lnet/minecraft/class_2378;Lnet/minecraft/class_3232;)Ljava/lang/String;
      named getGeneratorConfigString Lnet/minecraft/client/gui/screen/PresetsScreen;getGeneratorConfigString(Lnet/minecraft/util/registry/Registry;Lnet/minecraft/world/gen/chunk/FlatChunkGeneratorConfig;)Ljava/lang/String;
    • init

      protected void init()
      Called when a screen should be initialized.

      This method is called when this screen is opened or resized.

      Overrides:
      init in class Screen
      Mappings:
      Namespace Name Mixin selector
      official b Leap;b()V
      intermediary method_25426 Lnet/minecraft/class_437;method_25426()V
      named init Lnet/minecraft/client/gui/screen/Screen;init()V
    • mouseScrolled

      public boolean mouseScrolled(double mouseX, double mouseY, double amount)
      Callback for when a mouse button scroll event has been captured.
      Parameters:
      mouseX - the X coordinate of the mouse
      mouseY - the Y coordinate of the mouse
      amount - value is > 1 if scrolled down, < 1 if scrolled up
      Returns:
      true to indicate that the event handling is successful/valid
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Ldxx;a(DDD)Z
      intermediary method_25401 Lnet/minecraft/class_364;method_25401(DDD)Z
      named mouseScrolled Lnet/minecraft/client/gui/Element;mouseScrolled(DDD)Z
    • resize

      public void resize(MinecraftClient client, int width, int height)
      Overrides:
      resize in class Screen
      Mappings:
      Namespace Name Mixin selector
      official a Leap;a(Ldvo;II)V
      intermediary method_25410 Lnet/minecraft/class_437;method_25410(Lnet/minecraft/class_310;II)V
      named resize Lnet/minecraft/client/gui/screen/Screen;resize(Lnet/minecraft/client/MinecraftClient;II)V
    • onClose

      public void onClose()
      Overrides:
      onClose in class Screen
      Mappings:
      Namespace Name Mixin selector
      official ah_ Leap;ah_()V
      intermediary method_25419 Lnet/minecraft/class_437;method_25419()V
      named onClose Lnet/minecraft/client/gui/screen/Screen;onClose()V
    • removed

      public void removed()
      Overrides:
      removed in class Screen
      Mappings:
      Namespace Name Mixin selector
      official e Leap;e()V
      intermediary method_25432 Lnet/minecraft/class_437;method_25432()V
      named removed Lnet/minecraft/client/gui/screen/Screen;removed()V
    • render

      public void render(MatrixStack matrices, int mouseX, int mouseY, float delta)
      Specified by:
      render in interface Drawable
      Overrides:
      render in class Screen
      Mappings:
      Namespace Name Mixin selector
      official a Ldxu;a(Ldqk;IIF)V
      intermediary method_25394 Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_4587;IIF)V
      named render Lnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/util/math/MatrixStack;IIF)V
    • tick

      public void tick()
      Overrides:
      tick in class Screen
      Mappings:
      Namespace Name Mixin selector
      official d Leap;d()V
      intermediary method_25393 Lnet/minecraft/class_437;method_25393()V
      named tick Lnet/minecraft/client/gui/screen/Screen;tick()V
    • updateSelectButton

      public void updateSelectButton(boolean hasSelected)
      Mappings:
      Namespace Name Mixin selector
      official c Leam;c(Z)V
      intermediary method_20102 Lnet/minecraft/class_430;method_20102(Z)V
      named updateSelectButton Lnet/minecraft/client/gui/screen/PresetsScreen;updateSelectButton(Z)V
    • addPreset

      private static void addPreset(Text presetName, ItemConvertible icon, RegistryKey<Biome> presetBiome, List<StructureFeature<?>> structures, boolean generateStronghold, boolean generateFeatures, boolean generateLakes, FlatChunkGeneratorLayer[] layers)
      Mappings:
      Namespace Name Mixin selector
      official a Leam;a(Los;Lbwo;Lwv;Ljava/util/List;ZZZ[Lcyv;)V
      intermediary method_2195 Lnet/minecraft/class_430;method_2195(Lnet/minecraft/class_2561;Lnet/minecraft/class_1935;Lnet/minecraft/class_5321;Ljava/util/List;ZZZ[Lnet/minecraft/class_3229;)V
      named addPreset Lnet/minecraft/client/gui/screen/PresetsScreen;addPreset(Lnet/minecraft/text/Text;Lnet/minecraft/item/ItemConvertible;Lnet/minecraft/util/registry/RegistryKey;Ljava/util/List;ZZZ[Lnet/minecraft/world/gen/chunk/FlatChunkGeneratorLayer;)V