Class SleepingChatScreen

All Implemented Interfaces:
Drawable, Element, Navigable, ParentElement

@Environment(CLIENT) public class SleepingChatScreen extends ChatScreen
Mappings:
Namespace Name
official etz
intermediary net/minecraft/class_423
named net/minecraft/client/gui/screen/SleepingChatScreen
  • Field Details

    • stopSleepingButton

      private ButtonWidget stopSleepingButton
      Mappings:
      Namespace Name Mixin selector
      official c Letz;c:Lepi;
      intermediary field_41710 Lnet/minecraft/class_423;field_41710:Lnet/minecraft/class_4185;
      named stopSleepingButton Lnet/minecraft/client/gui/screen/SleepingChatScreen;stopSleepingButton:Lnet/minecraft/client/gui/widget/ButtonWidget;
  • Constructor Details

    • SleepingChatScreen

      public SleepingChatScreen()
  • Method Details

    • 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 ChatScreen
      Mappings:
      Namespace Name Mixin selector
      official b Leuq;b()V
      intermediary method_25426 Lnet/minecraft/class_437;method_25426()V
      named init Lnet/minecraft/client/gui/screen/Screen;init()V
    • render

      public void render(DrawContext context, int mouseX, int mouseY, float delta)
      Specified by:
      render in interface Drawable
      Overrides:
      render in class ChatScreen
      Mappings:
      Namespace Name Mixin selector
      official a Leqh;a(Leox;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
    • close

      public void close()
      Overrides:
      close in class Screen
      Mappings:
      Namespace Name Mixin selector
      official aw_ Leuq;aw_()V
      intermediary method_25419 Lnet/minecraft/class_437;method_25419()V
      named close Lnet/minecraft/client/gui/screen/Screen;close()V
    • charTyped

      public boolean charTyped(char chr, int modifiers)
      Callback for when a character input has been captured. The key code is identified by the constants in GLFW class.
      Parameters:
      chr - the captured character
      modifiers - a GLFW bitfield describing the modifier keys that are held down (see GLFW Modifier key flags)
      Returns:
      true to indicate that the event handling is successful/valid
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Leqt;a(CI)Z
      intermediary method_25400 Lnet/minecraft/class_364;method_25400(CI)Z
      named charTyped Lnet/minecraft/client/gui/Element;charTyped(CI)Z
    • keyPressed

      public boolean keyPressed(int keyCode, int scanCode, int modifiers)
      Callback for when a key down event has been captured. The key code is identified by the constants in GLFW class.
      Specified by:
      keyPressed in interface Element
      Specified by:
      keyPressed in interface ParentElement
      Overrides:
      keyPressed in class ChatScreen
      Parameters:
      keyCode - the named key code of the event as described in the GLFW class
      scanCode - the unique/platform-specific scan code of the keyboard input
      modifiers - a GLFW bitfield describing the modifier keys that are held down (see GLFW Modifier key flags)
      Returns:
      true to indicate that the event handling is successful/valid
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Leqt;a(III)Z
      intermediary method_25404 Lnet/minecraft/class_364;method_25404(III)Z
      named keyPressed Lnet/minecraft/client/gui/Element;keyPressed(III)Z
    • stopSleeping

      private void stopSleeping()
      Mappings:
      Namespace Name Mixin selector
      official l Letz;l()V
      intermediary method_2180 Lnet/minecraft/class_423;method_2180()V
      named stopSleeping Lnet/minecraft/client/gui/screen/SleepingChatScreen;stopSleeping()V
    • closeChatIfEmpty

      public void closeChatIfEmpty()
      Mappings:
      Namespace Name Mixin selector
      official k Letz;k()V
      intermediary method_38530 Lnet/minecraft/class_423;method_38530()V
      named closeChatIfEmpty Lnet/minecraft/client/gui/screen/SleepingChatScreen;closeChatIfEmpty()V