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 fsj
  • 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 Lfsj;a:Lwu;
    • 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 Lfsj;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 Lfsj;c:Lflh;
    • 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 Lfsj;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 Lfsj;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 Lfsj;s:Ldcc;
    • 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 Lfsj;u:Lfsj$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 Lfsj;v:Lfhu;
  • 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> Lfsj;<init>(Ldcc;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_ Lfnl;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 Lfnl;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 Lfnl;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 Lfsj;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 Lfsj;a(Lfsj$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 Lfsj;b(Lfsj$f;)V