Class WarningScreen

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

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

    • message

      private final Text message
      Mappings:
      Namespace Name Mixin selector
      official b Lexg;b:Lsw;
      intermediary field_37219 Lnet/minecraft/class_7065;field_37219:Lnet/minecraft/class_2561;
      named message Lnet/minecraft/client/gui/screen/WarningScreen;message:Lnet/minecraft/text/Text;
    • checkMessage

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

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

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

      private MultilineText messageText
      Mappings:
      Namespace Name Mixin selector
      official k Lexg;k:Lepq;
      intermediary field_37222 Lnet/minecraft/class_7065;field_37222:Lnet/minecraft/class_5489;
      named messageText Lnet/minecraft/client/gui/screen/WarningScreen;messageText:Lnet/minecraft/client/font/MultilineText;
  • Constructor Details

    • WarningScreen

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

      protected WarningScreen(Text header, Text message, @Nullable @Nullable Text checkMessage, Text narratedText)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lexg;<init>(Lsw;Lsw;Lsw;Lsw;)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
      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
  • Method Details

    • initButtons

      protected abstract void initButtons(int yOffset)
      Mappings:
      Namespace Name Mixin selector
      official a Lexg;a(I)V
      intermediary method_41160 Lnet/minecraft/class_7065;method_41160(I)V
      named initButtons Lnet/minecraft/client/gui/screen/WarningScreen;initButtons(I)V
    • 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(net.minecraft.client.gui.Element) to set the element that is initially focused.

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

      public Text getNarratedTitle()
      Overrides:
      getNarratedTitle in class Screen
      Mappings:
      Namespace Name Mixin selector
      official au_ Leug;au_()Lsw;
      intermediary method_25435 Lnet/minecraft/class_437;method_25435()Lnet/minecraft/class_2561;
      named getNarratedTitle Lnet/minecraft/client/gui/screen/Screen;getNarratedTitle()Lnet/minecraft/text/Text;
    • render

      public void render(DrawContext context, int mouseX, int mouseY, float delta)
      Specified by:
      render in interface Drawable
      Overrides:
      render in class Screen
      Mappings:
      Namespace Name Mixin selector
      official a Lepy;a(Leop;IIF)V
      intermediary method_25394 Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_332;IIF)V
      named render Lnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/gui/DrawContext;IIF)V
    • drawTitle

      protected void drawTitle(DrawContext context)
      Mappings:
      Namespace Name Mixin selector
      official c Lexg;c(Leop;)V
      intermediary method_44663 Lnet/minecraft/class_7065;method_44663(Lnet/minecraft/class_332;)V
      named drawTitle Lnet/minecraft/client/gui/screen/WarningScreen;drawTitle(Lnet/minecraft/client/gui/DrawContext;)V
    • getLineHeight

      protected int getLineHeight()
      Mappings:
      Namespace Name Mixin selector
      official l Lexg;l()I
      intermediary method_44068 Lnet/minecraft/class_7065;method_44068()I
      named getLineHeight Lnet/minecraft/client/gui/screen/WarningScreen;getLineHeight()I