Class InBedChatScreen

All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement

public class InBedChatScreen extends ChatScreen
  • Field Details

    • leaveBedButton

      private Button leaveBedButton
  • Constructor Details

    • InBedChatScreen

      public InBedChatScreen()
  • Method Details

    • init

      protected void init()
      Overrides:
      init in class ChatScreen
    • render

      public void render(GuiGraphics p_281659_, int p_283403_, int p_281737_, float p_282201_)
      Description copied from class: Screen
      Neo: mixins targeting this method won't fire for container screens as AbstractContainerScreen.render(net.minecraft.client.gui.GuiGraphics, int, int, float) replicates this method in place of a super call to insert an event
      Specified by:
      render in interface Renderable
      Overrides:
      render in class ChatScreen
      Parameters:
      p_281659_ - the GuiGraphics object used for rendering.
      p_283403_ - the x-coordinate of the mouse cursor.
      p_281737_ - the y-coordinate of the mouse cursor.
      p_282201_ - the partial tick time.
    • onClose

      public void onClose()
      Overrides:
      onClose in class Screen
    • charTyped

      public boolean charTyped(char p_263331_, int p_263427_)
      Description copied from interface: ContainerEventHandler
      Called when a character is typed within the GUI element.

      Parameters:
      p_263331_ - the code point of the typed character.
      p_263427_ - the keyboard modifiers.
      Returns:
      true if the event is consumed, false otherwise.
    • keyPressed

      public boolean keyPressed(int pKeyCode, int pScanCode, int pModifiers)
      Description copied from interface: ContainerEventHandler
      Called when a keyboard key is pressed within the GUI element.

      Specified by:
      keyPressed in interface ContainerEventHandler
      Specified by:
      keyPressed in interface GuiEventListener
      Overrides:
      keyPressed in class ChatScreen
      Parameters:
      pKeyCode - the key code of the pressed key.
      pScanCode - the scan code of the pressed key.
      pModifiers - the keyboard modifiers.
      Returns:
      true if the event is consumed, false otherwise.
    • sendWakeUp

      private void sendWakeUp()
    • onPlayerWokeUp

      public void onPlayerWokeUp()