Class EditGameRulesScreen

All Implemented Interfaces:
Drawable, Element, Navigable, ParentElement

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

    • TITLE

      private static final Text TITLE
      Mappings:
      Namespace Name Mixin selector
      named TITLE Lnet/minecraft/client/gui/screen/world/EditGameRulesScreen;TITLE:Lnet/minecraft/text/Text;
      intermediary field_49558 Lnet/minecraft/class_5235;field_49558:Lnet/minecraft/class_2561;
      official a Lfsx;a:Lwy;
    • field_49559

      private static final int field_49559
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_49559 Lnet/minecraft/client/gui/screen/world/EditGameRulesScreen;field_49559:I
      intermediary field_49559 Lnet/minecraft/class_5235;field_49559:I
      official b Lfsx;b:I
    • layout

      final ThreePartsLayoutWidget layout
      Mappings:
      Namespace Name Mixin selector
      named layout Lnet/minecraft/client/gui/screen/world/EditGameRulesScreen;layout:Lnet/minecraft/client/gui/widget/ThreePartsLayoutWidget;
      intermediary field_49560 Lnet/minecraft/class_5235;field_49560:Lnet/minecraft/class_8132;
      official c Lfsx;c:Lflt;
    • ruleSaver

      private final Consumer<Optional<GameRules>> ruleSaver
      Mappings:
      Namespace Name Mixin selector
      named ruleSaver Lnet/minecraft/client/gui/screen/world/EditGameRulesScreen;ruleSaver:Ljava/util/function/Consumer;
      intermediary field_24293 Lnet/minecraft/class_5235;field_24293:Ljava/util/function/Consumer;
      official q Lfsx;q:Ljava/util/function/Consumer;
    • invalidRuleWidgets

      private final Set<EditGameRulesScreen.AbstractRuleWidget> invalidRuleWidgets
      Mappings:
      Namespace Name Mixin selector
      named invalidRuleWidgets Lnet/minecraft/client/gui/screen/world/EditGameRulesScreen;invalidRuleWidgets:Ljava/util/Set;
      intermediary field_24295 Lnet/minecraft/class_5235;field_24295:Ljava/util/Set;
      official r Lfsx;r:Ljava/util/Set;
    • gameRules

      private final GameRules gameRules
      Mappings:
      Namespace Name Mixin selector
      named gameRules Lnet/minecraft/client/gui/screen/world/EditGameRulesScreen;gameRules:Lnet/minecraft/world/GameRules;
      intermediary field_24298 Lnet/minecraft/class_5235;field_24298:Lnet/minecraft/class_1928;
      official s Lfsx;s:Ldcq;
    • ruleListWidget

      Mappings:
      Namespace Name Mixin selector
      named ruleListWidget Lnet/minecraft/client/gui/screen/world/EditGameRulesScreen;ruleListWidget:Lnet/minecraft/client/gui/screen/world/EditGameRulesScreen$RuleListWidget;
      intermediary field_49903 Lnet/minecraft/class_5235;field_49903:Lnet/minecraft/class_5235$class_5241;
      official u Lfsx;u:Lfsx$g;
    • doneButton

      @Nullable private @Nullable ButtonWidget doneButton
      Mappings:
      Namespace Name Mixin selector
      named doneButton Lnet/minecraft/client/gui/screen/world/EditGameRulesScreen;doneButton:Lnet/minecraft/client/gui/widget/ButtonWidget;
      intermediary field_24296 Lnet/minecraft/class_5235;field_24296:Lnet/minecraft/class_4185;
      official v Lfsx;v:Lfig;
  • Constructor Details

    • EditGameRulesScreen

      public EditGameRulesScreen(GameRules gameRules, Consumer<Optional<GameRules>> ruleSaveConsumer)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/gui/screen/world/EditGameRulesScreen;<init>(Lnet/minecraft/world/GameRules;Ljava/util/function/Consumer;)V
      intermediary <init> Lnet/minecraft/class_5235;<init>(Lnet/minecraft/class_1928;Ljava/util/function/Consumer;)V
      official <init> Lfsx;<init>(Ldcq;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() 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 aP_ Lfnx;aP_()V
    • initTabNavigation

      protected void initTabNavigation()
      Overrides:
      initTabNavigation in class Screen
      Mappings:
      Namespace Name Mixin selector
      named initTabNavigation Lnet/minecraft/client/gui/screen/Screen;initTabNavigation()V
      intermediary method_48640 Lnet/minecraft/class_437;method_48640()V
      official c Lfnx;c()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 Lfnx;d()V
    • updateDoneButton

      private void updateDoneButton()
      Mappings:
      Namespace Name Mixin selector
      named updateDoneButton Lnet/minecraft/client/gui/screen/world/EditGameRulesScreen;updateDoneButton()V
      intermediary method_27632 Lnet/minecraft/class_5235;method_27632()V
      official m Lfsx;m()V
    • markInvalid

      void markInvalid(EditGameRulesScreen.AbstractRuleWidget ruleWidget)
      Mappings:
      Namespace Name Mixin selector
      named markInvalid Lnet/minecraft/client/gui/screen/world/EditGameRulesScreen;markInvalid(Lnet/minecraft/client/gui/screen/world/EditGameRulesScreen$AbstractRuleWidget;)V
      intermediary method_27620 Lnet/minecraft/class_5235;method_27620(Lnet/minecraft/class_5235$class_5240;)V
      official a Lfsx;a(Lfsx$f;)V
    • markValid

      void markValid(EditGameRulesScreen.AbstractRuleWidget ruleWidget)
      Mappings:
      Namespace Name Mixin selector
      named markValid Lnet/minecraft/client/gui/screen/world/EditGameRulesScreen;markValid(Lnet/minecraft/client/gui/screen/world/EditGameRulesScreen$AbstractRuleWidget;)V
      intermediary method_27626 Lnet/minecraft/class_5235;method_27626(Lnet/minecraft/class_5235$class_5240;)V
      official b Lfsx;b(Lfsx$f;)V