Class OptionsScreen

All Implemented Interfaces:
Drawable, Element, ParentElement

@Environment(CLIENT) public class OptionsScreen extends Screen
Mappings:
Namespace Name
official eci
intermediary net/minecraft/class_429
named net/minecraft/client/gui/screen/option/OptionsScreen
  • Field Details

    • OPTIONS

      private static final Option[] OPTIONS
      Mappings:
      Namespace Name Mixin selector
      official a Leci;a:[Ldxr;
      intermediary field_2504 Lnet/minecraft/class_429;field_2504:[Lnet/minecraft/class_316;
      named OPTIONS Lnet/minecraft/client/gui/screen/option/OptionsScreen;OPTIONS:[Lnet/minecraft/client/option/Option;
    • parent

      private final Screen parent
      Mappings:
      Namespace Name Mixin selector
      official b Leci;b:Lecr;
      intermediary field_2501 Lnet/minecraft/class_429;field_2501:Lnet/minecraft/class_437;
      named parent Lnet/minecraft/client/gui/screen/option/OptionsScreen;parent:Lnet/minecraft/client/gui/screen/Screen;
    • settings

      private final GameOptions settings
      Mappings:
      Namespace Name Mixin selector
      official c Leci;c:Ldxs;
      intermediary field_2502 Lnet/minecraft/class_429;field_2502:Lnet/minecraft/class_315;
      named settings Lnet/minecraft/client/gui/screen/option/OptionsScreen;settings:Lnet/minecraft/client/option/GameOptions;
    • difficultyButton

      private CyclingButtonWidget<Difficulty> difficultyButton
      Mappings:
      Namespace Name Mixin selector
      official n Leci;n:Ldzg;
      intermediary field_2500 Lnet/minecraft/class_429;field_2500:Lnet/minecraft/class_5676;
      named difficultyButton Lnet/minecraft/client/gui/screen/option/OptionsScreen;difficultyButton:Lnet/minecraft/client/gui/widget/CyclingButtonWidget;
    • lockDifficultyButton

      private LockButtonWidget lockDifficultyButton
      Mappings:
      Namespace Name Mixin selector
      official o Leci;o:Ldzl;
      intermediary field_2503 Lnet/minecraft/class_429;field_2503:Lnet/minecraft/class_347;
      named lockDifficultyButton Lnet/minecraft/client/gui/screen/option/OptionsScreen;lockDifficultyButton:Lnet/minecraft/client/gui/widget/LockButtonWidget;
  • Constructor Details

    • OptionsScreen

      public OptionsScreen(Screen parent, GameOptions gameOptions)
      Mappings:
      Namespace Name Mixin selector
      official <init> Leci;<init>(Lecr;Ldxs;)V
      intermediary <init> Lnet/minecraft/class_429;<init>(Lnet/minecraft/class_437;Lnet/minecraft/class_315;)V
      named <init> Lnet/minecraft/client/gui/screen/option/OptionsScreen;<init>(Lnet/minecraft/client/gui/screen/Screen;Lnet/minecraft/client/option/GameOptions;)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.

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

      public static CyclingButtonWidget<Difficulty> createDifficultyButtonWidget(int buttonIndex, int width, int height, String translationKey, MinecraftClient client)
      Mappings:
      Namespace Name Mixin selector
      official a Leci;a(IIILjava/lang/String;Ldxo;)Ldzg;
      intermediary method_39486 Lnet/minecraft/class_429;method_39486(IIILjava/lang/String;Lnet/minecraft/class_310;)Lnet/minecraft/class_5676;
      named createDifficultyButtonWidget Lnet/minecraft/client/gui/screen/option/OptionsScreen;createDifficultyButtonWidget(IIILjava/lang/String;Lnet/minecraft/client/MinecraftClient;)Lnet/minecraft/client/gui/widget/CyclingButtonWidget;
    • refreshResourcePacks

      private void refreshResourcePacks(ResourcePackManager resourcePackManager)
      Mappings:
      Namespace Name Mixin selector
      official a Leci;a(Laez;)V
      intermediary method_29975 Lnet/minecraft/class_429;method_29975(Lnet/minecraft/class_3283;)V
      named refreshResourcePacks Lnet/minecraft/client/gui/screen/option/OptionsScreen;refreshResourcePacks(Lnet/minecraft/resource/ResourcePackManager;)V
    • lockDifficulty

      private void lockDifficulty(boolean difficultyLocked)
      Mappings:
      Namespace Name Mixin selector
      official c Leci;c(Z)V
      intermediary method_20374 Lnet/minecraft/class_429;method_20374(Z)V
      named lockDifficulty Lnet/minecraft/client/gui/screen/option/OptionsScreen;lockDifficulty(Z)V
    • removed

      public void removed()
      Overrides:
      removed in class Screen
      Mappings:
      Namespace Name Mixin selector
      official e Lecr;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 Ldzv;a(Ldsj;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