Class ExperimentsScreen

All Implemented Interfaces:
Drawable, Element, Navigable, ParentElement

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

    • INFO_WIDTH

      private static final int INFO_WIDTH
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lfhu;a:I
      intermediary field_42503 Lnet/minecraft/class_8134;field_42503:I
      named INFO_WIDTH Lnet/minecraft/client/gui/screen/world/ExperimentsScreen;INFO_WIDTH:I
    • experimentToggleList

      private final ThreePartsLayoutWidget experimentToggleList
      Mappings:
      Namespace Name Mixin selector
      official b Lfhu;b:Lfaq;
      intermediary field_42504 Lnet/minecraft/class_8134;field_42504:Lnet/minecraft/class_8132;
      named experimentToggleList Lnet/minecraft/client/gui/screen/world/ExperimentsScreen;experimentToggleList:Lnet/minecraft/client/gui/widget/ThreePartsLayoutWidget;
    • parent

      private final Screen parent
      Mappings:
      Namespace Name Mixin selector
      official c Lfhu;c:Lfdb;
      intermediary field_42505 Lnet/minecraft/class_8134;field_42505:Lnet/minecraft/class_437;
      named parent Lnet/minecraft/client/gui/screen/world/ExperimentsScreen;parent:Lnet/minecraft/client/gui/screen/Screen;
    • resourcePackManager

      private final ResourcePackManager resourcePackManager
      Mappings:
      Namespace Name Mixin selector
      official k Lfhu;k:Lapt;
      intermediary field_42506 Lnet/minecraft/class_8134;field_42506:Lnet/minecraft/class_3283;
      named resourcePackManager Lnet/minecraft/client/gui/screen/world/ExperimentsScreen;resourcePackManager:Lnet/minecraft/resource/ResourcePackManager;
    • applier

      private final Consumer<ResourcePackManager> applier
      Mappings:
      Namespace Name Mixin selector
      official l Lfhu;l:Ljava/util/function/Consumer;
      intermediary field_42507 Lnet/minecraft/class_8134;field_42507:Ljava/util/function/Consumer;
      named applier Lnet/minecraft/client/gui/screen/world/ExperimentsScreen;applier:Ljava/util/function/Consumer;
    • experiments

      private final Object2BooleanMap<ResourcePackProfile> experiments
      Mappings:
      Namespace Name Mixin selector
      official m Lfhu;m:Lit/unimi/dsi/fastutil/objects/Object2BooleanMap;
      intermediary field_42508 Lnet/minecraft/class_8134;field_42508:Lit/unimi/dsi/fastutil/objects/Object2BooleanMap;
      named experiments Lnet/minecraft/client/gui/screen/world/ExperimentsScreen;experiments:Lit/unimi/dsi/fastutil/objects/Object2BooleanMap;
  • Constructor Details

    • ExperimentsScreen

      public ExperimentsScreen(Screen parent, ResourcePackManager resourcePackManager, Consumer<ResourcePackManager> applier)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lfhu;<init>(Lfdb;Lapt;Ljava/util/function/Consumer;)V
      intermediary <init> Lnet/minecraft/class_8134;<init>(Lnet/minecraft/class_437;Lnet/minecraft/class_3283;Ljava/util/function/Consumer;)V
      named <init> Lnet/minecraft/client/gui/screen/world/ExperimentsScreen;<init>(Lnet/minecraft/client/gui/screen/Screen;Lnet/minecraft/resource/ResourcePackManager;Ljava/util/function/Consumer;)V
  • Method Details

    • 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(net.minecraft.client.gui.Element) to set the element that is initially focused.

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

      private static Text getDataPackName(ResourcePackProfile packProfile)
      Mappings:
      Namespace Name Mixin selector
      official a Lfhu;a(Lapq;)Lvf;
      intermediary method_49016 Lnet/minecraft/class_8134;method_49016(Lnet/minecraft/class_3288;)Lnet/minecraft/class_2561;
      named getDataPackName Lnet/minecraft/client/gui/screen/world/ExperimentsScreen;getDataPackName(Lnet/minecraft/resource/ResourcePackProfile;)Lnet/minecraft/text/Text;
    • close

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

      private void applyAndClose()
      Mappings:
      Namespace Name Mixin selector
      official n Lfhu;n()V
      intermediary method_49024 Lnet/minecraft/class_8134;method_49024()V
      named applyAndClose Lnet/minecraft/client/gui/screen/world/ExperimentsScreen;applyAndClose()V
    • initTabNavigation

      protected void initTabNavigation()
      Overrides:
      initTabNavigation in class Screen
      Mappings:
      Namespace Name Mixin selector
      official c Lfdb;c()V
      intermediary method_48640 Lnet/minecraft/class_437;method_48640()V
      named initTabNavigation Lnet/minecraft/client/gui/screen/Screen;initTabNavigation()V
    • renderBackground

      public void renderBackground(DrawContext context, int mouseX, int mouseY, float delta)
      Renders the background of this screen.

      If the client is in a world, renders the translucent background gradient. Otherwise renders the background texture.

      Overrides:
      renderBackground in class Screen
      Mappings:
      Namespace Name Mixin selector
      official b Lfdb;b(Lewu;IIF)V
      intermediary method_25420 Lnet/minecraft/class_437;method_25420(Lnet/minecraft/class_332;IIF)V
      named renderBackground Lnet/minecraft/client/gui/screen/Screen;renderBackground(Lnet/minecraft/client/gui/DrawContext;IIF)V