Class RealmsMainScreen.NotificationMessageEntry

All Implemented Interfaces:
GuiEventListener, TabOrderedElement, NarrationSupplier
Enclosing class:
RealmsMainScreen

class RealmsMainScreen.NotificationMessageEntry extends RealmsMainScreen.Entry
  • Field Details

  • Constructor Details

    • NotificationMessageEntry

      public NotificationMessageEntry(Component pText, int pFrameItemHeight, RealmsNotification pNotification)
  • Method Details

    • keyPressed

      public boolean keyPressed(int p_275646_, int p_275453_, int p_275621_)
      Description copied from interface: GuiEventListener
      Called when a keyboard key is pressed within the GUI element.

      Parameters:
      p_275646_ - the key code of the pressed key.
      p_275453_ - the scan code of the pressed key.
      p_275621_ - the keyboard modifiers.
      Returns:
      true if the event is consumed, false otherwise.
    • updateEntryWidth

      private void updateEntryWidth(int pEntryWidth)
    • refreshLayout

      private void refreshLayout(int pWidth)
    • renderBack

      public void renderBack(GuiGraphics p_281374_, int p_282622_, int p_283656_, int p_281830_, int p_281651_, int p_283685_, int p_281784_, int p_282510_, boolean p_283146_, float p_283324_)
      Overrides:
      renderBack in class AbstractSelectionList.Entry<RealmsMainScreen.Entry>
    • render

      public void render(GuiGraphics p_281768_, int p_275375_, int p_275358_, int p_275447_, int p_275694_, int p_275477_, int p_275710_, int p_275677_, boolean p_275542_, float p_275323_)
      Specified by:
      render in class AbstractSelectionList.Entry<RealmsMainScreen.Entry>
    • mouseClicked

      public boolean mouseClicked(double p_275209_, double p_275338_, int p_275560_)
      Description copied from interface: GuiEventListener
      Called when a mouse button is clicked within the GUI element.

      Specified by:
      mouseClicked in interface GuiEventListener
      Overrides:
      mouseClicked in class ObjectSelectionList.Entry<RealmsMainScreen.Entry>
      Parameters:
      p_275209_ - the X coordinate of the mouse.
      p_275338_ - the Y coordinate of the mouse.
      p_275560_ - the button that was clicked.
      Returns:
      true if the event is consumed, false otherwise.
    • getNarration

      public Component getNarration()
      Specified by:
      getNarration in class ObjectSelectionList.Entry<RealmsMainScreen.Entry>