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 fyy
  • 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 Lfyy;a:Lxv;
    • 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 Lfyy;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 Lfyy;c:Lfrt;
    • 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 d Lfyy;d: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 s Lfyy;s: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 u Lfyy;u:Ldhd;
    • 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 v Lfyy;v:Lfyy$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 w Lfyy;w:Lfoe;
  • 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> Lfyy;<init>(Ldhd;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.

      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 aT_ Lftx;aT_()V
    • refreshWidgetPositions

      protected void refreshWidgetPositions()
      Overrides:
      refreshWidgetPositions in class Screen
      Mappings:
      Namespace Name Mixin selector
      named refreshWidgetPositions Lnet/minecraft/client/gui/screen/Screen;refreshWidgetPositions()V
      intermediary method_48640 Lnet/minecraft/class_437;method_48640()V
      official c Lftx;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 aP_ Lftx;aP_()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 l Lfyy;l()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 Lfyy;a(Lfyy$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 Lfyy;b(Lfyy$f;)V