Class PresetsScreen

All Implemented Interfaces:
Drawable, Element, Navigable, ParentElement

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

    • SLOT_TEXTURE

      static final Identifier SLOT_TEXTURE
      Mappings:
      Namespace Name Mixin selector
      named SLOT_TEXTURE Lnet/minecraft/client/gui/screen/world/PresetsScreen;SLOT_TEXTURE:Lnet/minecraft/util/Identifier;
      intermediary field_45417 Lnet/minecraft/class_430;field_45417:Lnet/minecraft/class_2960;
      official b Lfnb;b:Lalf;
    • LOGGER

      static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/client/gui/screen/world/PresetsScreen;LOGGER:Lorg/slf4j/Logger;
      intermediary field_25043 Lnet/minecraft/class_430;field_25043:Lorg/slf4j/Logger;
      official c Lfnb;c:Lorg/slf4j/Logger;
    • ICON_SIZE

      private static final int ICON_SIZE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named ICON_SIZE Lnet/minecraft/client/gui/screen/world/PresetsScreen;ICON_SIZE:I
      intermediary field_32264 Lnet/minecraft/class_430;field_32264:I
      official d Lfnb;d:I
    • BUTTON_HEIGHT

      private static final int BUTTON_HEIGHT
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named BUTTON_HEIGHT Lnet/minecraft/client/gui/screen/world/PresetsScreen;BUTTON_HEIGHT:I
      intermediary field_32265 Lnet/minecraft/class_430;field_32265:I
      official r Lfnb;r:I
    • ICON_BACKGROUND_OFFSET_X

      private static final int ICON_BACKGROUND_OFFSET_X
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named ICON_BACKGROUND_OFFSET_X Lnet/minecraft/client/gui/screen/world/PresetsScreen;ICON_BACKGROUND_OFFSET_X:I
      intermediary field_32266 Lnet/minecraft/class_430;field_32266:I
      official s Lfnb;s:I
    • ICON_BACKGROUND_OFFSET_Y

      private static final int ICON_BACKGROUND_OFFSET_Y
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named ICON_BACKGROUND_OFFSET_Y Lnet/minecraft/client/gui/screen/world/PresetsScreen;ICON_BACKGROUND_OFFSET_Y:I
      intermediary field_32267 Lnet/minecraft/class_430;field_32267:I
      official u Lfnb;u:I
    • ICON_OFFSET_X

      private static final int ICON_OFFSET_X
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named ICON_OFFSET_X Lnet/minecraft/client/gui/screen/world/PresetsScreen;ICON_OFFSET_X:I
      intermediary field_32268 Lnet/minecraft/class_430;field_32268:I
      official v Lfnb;v:I
    • ICON_OFFSET_Y

      private static final int ICON_OFFSET_Y
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named ICON_OFFSET_Y Lnet/minecraft/client/gui/screen/world/PresetsScreen;ICON_OFFSET_Y:I
      intermediary field_32269 Lnet/minecraft/class_430;field_32269:I
      official w Lfnb;w:I
    • BIOME_KEY

      private static final RegistryKey<Biome> BIOME_KEY
      Mappings:
      Namespace Name Mixin selector
      named BIOME_KEY Lnet/minecraft/client/gui/screen/world/PresetsScreen;BIOME_KEY:Lnet/minecraft/registry/RegistryKey;
      intermediary field_27985 Lnet/minecraft/class_430;field_27985:Lnet/minecraft/class_5321;
      official x Lfnb;x:Lale;
    • UNKNOWN_PRESET_TEXT

      public static final Text UNKNOWN_PRESET_TEXT
      Mappings:
      Namespace Name Mixin selector
      named UNKNOWN_PRESET_TEXT Lnet/minecraft/client/gui/screen/world/PresetsScreen;UNKNOWN_PRESET_TEXT:Lnet/minecraft/text/Text;
      intermediary field_37908 Lnet/minecraft/class_430;field_37908:Lnet/minecraft/class_2561;
      official a Lfnb;a:Lxp;
    • parent

      private final CustomizeFlatLevelScreen parent
      Mappings:
      Namespace Name Mixin selector
      named parent Lnet/minecraft/client/gui/screen/world/PresetsScreen;parent:Lnet/minecraft/client/gui/screen/world/CustomizeFlatLevelScreen;
      intermediary field_2519 Lnet/minecraft/class_430;field_2519:Lnet/minecraft/class_413;
      official y Lfnb;y:Lfma;
    • shareText

      private Text shareText
      Mappings:
      Namespace Name Mixin selector
      named shareText Lnet/minecraft/client/gui/screen/world/PresetsScreen;shareText:Lnet/minecraft/text/Text;
      intermediary field_2520 Lnet/minecraft/class_430;field_2520:Lnet/minecraft/class_2561;
      official z Lfnb;z:Lxp;
    • listText

      private Text listText
      Mappings:
      Namespace Name Mixin selector
      named listText Lnet/minecraft/client/gui/screen/world/PresetsScreen;listText:Lnet/minecraft/text/Text;
      intermediary field_2524 Lnet/minecraft/class_430;field_2524:Lnet/minecraft/class_2561;
      official A Lfnb;A:Lxp;
    • listWidget

      Mappings:
      Namespace Name Mixin selector
      named listWidget Lnet/minecraft/client/gui/screen/world/PresetsScreen;listWidget:Lnet/minecraft/client/gui/screen/world/PresetsScreen$SuperflatPresetsListWidget;
      intermediary field_2521 Lnet/minecraft/class_430;field_2521:Lnet/minecraft/class_430$class_4196;
      official B Lfnb;B:Lfnb$a;
    • selectPresetButton

      private ButtonWidget selectPresetButton
      Mappings:
      Namespace Name Mixin selector
      named selectPresetButton Lnet/minecraft/client/gui/screen/world/PresetsScreen;selectPresetButton:Lnet/minecraft/client/gui/widget/ButtonWidget;
      intermediary field_2525 Lnet/minecraft/class_430;field_2525:Lnet/minecraft/class_4185;
      official C Lfnb;C:Lfhg;
    • customPresetField

      TextFieldWidget customPresetField
      Mappings:
      Namespace Name Mixin selector
      named customPresetField Lnet/minecraft/client/gui/screen/world/PresetsScreen;customPresetField:Lnet/minecraft/client/gui/widget/TextFieldWidget;
      intermediary field_2523 Lnet/minecraft/class_430;field_2523:Lnet/minecraft/class_342;
      official D Lfnb;D:Lfhp;
    • config

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

    • PresetsScreen

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

    • parseLayerString

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

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

      public static FlatChunkGeneratorConfig parsePresetString(RegistryEntryLookup<Block> blockLookup, RegistryEntryLookup<Biome> biomeLookup, RegistryEntryLookup<StructureSet> structureSetLookup, RegistryEntryLookup<PlacedFeature> placedFeatureLookup, String preset, FlatChunkGeneratorConfig config)
      Mappings:
      Namespace Name Mixin selector
      named parsePresetString Lnet/minecraft/client/gui/screen/world/PresetsScreen;parsePresetString(Lnet/minecraft/registry/RegistryEntryLookup;Lnet/minecraft/registry/RegistryEntryLookup;Lnet/minecraft/registry/RegistryEntryLookup;Lnet/minecraft/registry/RegistryEntryLookup;Ljava/lang/String;Lnet/minecraft/world/gen/chunk/FlatChunkGeneratorConfig;)Lnet/minecraft/world/gen/chunk/FlatChunkGeneratorConfig;
      intermediary method_29060 Lnet/minecraft/class_430;method_29060(Lnet/minecraft/class_7871;Lnet/minecraft/class_7871;Lnet/minecraft/class_7871;Lnet/minecraft/class_7871;Ljava/lang/String;Lnet/minecraft/class_3232;)Lnet/minecraft/class_3232;
      official a Lfnb;a(Ljj;Ljj;Ljj;Ljj;Ljava/lang/String;Legp;)Legp;
    • getGeneratorConfigString

      static String getGeneratorConfigString(FlatChunkGeneratorConfig config)
      Mappings:
      Namespace Name Mixin selector
      named getGeneratorConfigString Lnet/minecraft/client/gui/screen/world/PresetsScreen;getGeneratorConfigString(Lnet/minecraft/world/gen/chunk/FlatChunkGeneratorConfig;)Ljava/lang/String;
      intermediary method_29062 Lnet/minecraft/class_430;method_29062(Lnet/minecraft/class_3232;)Ljava/lang/String;
      official a Lfnb;a(Legp;)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.

      This should call Screen.setInitialFocus() to set the element that is initially focused.

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

      public boolean mouseScrolled(double mouseX, double mouseY, double horizontalAmount, double verticalAmount)
      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
      horizontalAmount - the horizontal scroll amount
      verticalAmount - the vertical scroll amount
      Returns:
      true to indicate that the event handling is successful/valid
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named mouseScrolled Lnet/minecraft/client/gui/Element;mouseScrolled(DDDD)Z
      intermediary method_25401 Lnet/minecraft/class_364;method_25401(DDDD)Z
      official a Lfjc;a(DDDD)Z
    • resize

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

      public void close()
      Overrides:
      close in class Screen
      Mappings:
      Namespace Name Mixin selector
      named close Lnet/minecraft/client/gui/screen/Screen;close()V
      intermediary method_25419 Lnet/minecraft/class_437;method_25419()V
      official d Lfnf;d()V
    • render

      public void render(DrawContext context, int mouseX, int mouseY, float delta)
      Specified by:
      render in interface Drawable
      Overrides:
      render in class Screen
      Mappings:
      Namespace Name Mixin selector
      named render Lnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/gui/DrawContext;IIF)V
      intermediary method_25394 Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_332;IIF)V
      official a Lfij;a(Lfgt;IIF)V
    • updateSelectButton

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