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 fti
  • Field Details

    • textWidget

      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 Lfti;a:Lfop;
  • Constructor Details

    • MessageScreen

      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> Lftx;<init>(Lxv;)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
    • shouldCloseOnEsc

      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 aH_ Lftx;aH_()Z
    • hasUsageText

      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 aS_ Lftx;aS_()Z
    • renderBackground

      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 Lftx;b(Lfnr;IIF)V