Class WarningScreen

All Implemented Interfaces:
Drawable, Element, Navigable, ParentElement
Direct Known Subclasses:
MultiplayerWarningScreen, ReportScreen.DiscardWarningScreen

@Environment(CLIENT) public abstract class WarningScreen extends Screen
Mappings:
Namespace Name
named net/minecraft/client/gui/screen/WarningScreen
intermediary net/minecraft/class_7065
official fqe
  • Field Details

    • field_49538

      private static final int field_49538
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_49538 Lnet/minecraft/client/gui/screen/WarningScreen;field_49538:I
      intermediary field_49538 Lnet/minecraft/class_7065;field_49538:I
      official b Lfqe;b:I
    • messageText

      private final Text messageText
      Mappings:
      Namespace Name Mixin selector
      named messageText Lnet/minecraft/client/gui/screen/WarningScreen;messageText:Lnet/minecraft/text/Text;
      intermediary field_37222 Lnet/minecraft/class_7065;field_37222:Lnet/minecraft/class_2561;
      official c Lfqe;c:Lwu;
    • checkMessage

      @Nullable private final @Nullable Text checkMessage
      Mappings:
      Namespace Name Mixin selector
      named checkMessage Lnet/minecraft/client/gui/screen/WarningScreen;checkMessage:Lnet/minecraft/text/Text;
      intermediary field_37220 Lnet/minecraft/class_7065;field_37220:Lnet/minecraft/class_2561;
      official q Lfqe;q:Lwu;
    • narratedText

      private final Text narratedText
      Mappings:
      Namespace Name Mixin selector
      named narratedText Lnet/minecraft/client/gui/screen/WarningScreen;narratedText:Lnet/minecraft/text/Text;
      intermediary field_37221 Lnet/minecraft/class_7065;field_37221:Lnet/minecraft/class_2561;
      official r Lfqe;r:Lwu;
    • checkbox

      @Nullable protected @Nullable CheckboxWidget checkbox
      Mappings:
      Namespace Name Mixin selector
      named checkbox Lnet/minecraft/client/gui/screen/WarningScreen;checkbox:Lnet/minecraft/client/gui/widget/CheckboxWidget;
      intermediary field_37217 Lnet/minecraft/class_7065;field_37217:Lnet/minecraft/class_4286;
      official a Lfqe;a:Lfhw;
    • textWidget

      Mappings:
      Namespace Name Mixin selector
      named textWidget Lnet/minecraft/client/gui/screen/WarningScreen;textWidget:Lnet/minecraft/client/gui/widget/NarratedMultilineTextWidget;
      intermediary field_49539 Lnet/minecraft/class_7065;field_49539:Lnet/minecraft/class_8019;
      official s Lfqe;s:Lfif;
    • positioningWidget

      private final SimplePositioningWidget positioningWidget
      Mappings:
      Namespace Name Mixin selector
      named positioningWidget Lnet/minecraft/client/gui/screen/WarningScreen;positioningWidget:Lnet/minecraft/client/gui/widget/SimplePositioningWidget;
      intermediary field_49540 Lnet/minecraft/class_7065;field_49540:Lnet/minecraft/class_7843;
      official u Lfqe;u:Lflf;
  • Constructor Details

    • WarningScreen

      protected WarningScreen(Text header, Text message, Text narratedText)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/gui/screen/WarningScreen;<init>(Lnet/minecraft/text/Text;Lnet/minecraft/text/Text;Lnet/minecraft/text/Text;)V
      intermediary <init> Lnet/minecraft/class_7065;<init>(Lnet/minecraft/class_2561;Lnet/minecraft/class_2561;Lnet/minecraft/class_2561;)V
      official <init> Lfqe;<init>(Lwu;Lwu;Lwu;)V
    • WarningScreen

      protected WarningScreen(Text header, Text messageText, @Nullable @Nullable Text checkMessage, Text narratedText)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/gui/screen/WarningScreen;<init>(Lnet/minecraft/text/Text;Lnet/minecraft/text/Text;Lnet/minecraft/text/Text;Lnet/minecraft/text/Text;)V
      intermediary <init> Lnet/minecraft/class_7065;<init>(Lnet/minecraft/class_2561;Lnet/minecraft/class_2561;Lnet/minecraft/class_2561;Lnet/minecraft/class_2561;)V
      official <init> Lfqe;<init>(Lwu;Lwu;Lwu;Lwu;)V
  • Method Details

    • getLayout

      protected abstract LayoutWidget getLayout()
      Mappings:
      Namespace Name Mixin selector
      named getLayout Lnet/minecraft/client/gui/screen/WarningScreen;getLayout()Lnet/minecraft/client/gui/widget/LayoutWidget;
      intermediary method_57750 Lnet/minecraft/class_7065;method_57750()Lnet/minecraft/class_8133;
      official m Lfqe;m()Lfli;
    • 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
    • getNarratedTitle

      public Text getNarratedTitle()
      Overrides:
      getNarratedTitle in class Screen
      Mappings:
      Namespace Name Mixin selector
      named getNarratedTitle Lnet/minecraft/client/gui/screen/Screen;getNarratedTitle()Lnet/minecraft/text/Text;
      intermediary method_25435 Lnet/minecraft/class_437;method_25435()Lnet/minecraft/class_2561;
      official i Lfnl;i()Lwu;