Class MessageScreen

All Implemented Interfaces:
Drawable, Element, Navigable, ParentElement

@Environment(CLIENT) public class MessageScreen extends Screen
Mappings:
Namespace Name
named net/minecraft/client/gui/screen/MessageScreen
intermediary net/minecraft/class_424
official ftx
  • Field Details Link icon

    • textWidget Link icon

      Mappings:
      Namespace Name Mixin selector
      named textWidget Lnet/minecraft/client/gui/screen/MessageScreen;textWidget:Lnet/minecraft/client/gui/widget/NarratedMultilineTextWidget;
      intermediary field_49496 Lnet/minecraft/class_424;field_49496:Lnet/minecraft/class_8019;
      official a Lftx;a:Lfpf;
  • Constructor Details Link icon

    • MessageScreen Link icon

      public MessageScreen(Text title)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/gui/screen/Screen;<init>(Lnet/minecraft/text/Text;)V
      intermediary <init> Lnet/minecraft/class_437;<init>(Lnet/minecraft/class_2561;)V
      official <init> Lfum;<init>(Lwp;)V
  • Method Details Link icon

    • init Link icon

      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 aR_ Lfum;aR_()V
    • refreshWidgetPositions Link icon

      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 Lfum;c()V
    • shouldCloseOnEsc Link icon

      public boolean shouldCloseOnEsc()
      Checks whether this screen should be closed when the escape key is pressed.
      Overrides:
      shouldCloseOnEsc in class Screen
      Mappings:
      Namespace Name Mixin selector
      named shouldCloseOnEsc Lnet/minecraft/client/gui/screen/Screen;shouldCloseOnEsc()Z
      intermediary method_25422 Lnet/minecraft/class_437;method_25422()Z
      official aG_ Lfum;aG_()Z
    • hasUsageText Link icon

      protected boolean hasUsageText()
      Overrides:
      hasUsageText in class Screen
      Mappings:
      Namespace Name Mixin selector
      named hasUsageText Lnet/minecraft/client/gui/screen/Screen;hasUsageText()Z
      intermediary method_48262 Lnet/minecraft/class_437;method_48262()Z
      official aQ_ Lfum;aQ_()Z
    • renderBackground Link icon

      public void renderBackground(DrawContext context, int mouseX, int mouseY, float delta)
      Renders the background of this screen.

      If the client is in a world, renders the translucent background gradient. Otherwise renders the background texture.

      Overrides:
      renderBackground in class Screen
      Mappings:
      Namespace Name Mixin selector
      named renderBackground Lnet/minecraft/client/gui/screen/Screen;renderBackground(Lnet/minecraft/client/gui/DrawContext;IIF)V
      intermediary method_25420 Lnet/minecraft/class_437;method_25420(Lnet/minecraft/class_332;IIF)V
      official b Lfum;b(Lfof;IIF)V