Class RealmsMainScreen.AvailableSnapshotEntry

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

class RealmsMainScreen.AvailableSnapshotEntry extends RealmsMainScreen.Entry
  • Field Details

  • Constructor Details

    • AvailableSnapshotEntry

      public AvailableSnapshotEntry(RealmsServer pParent)
  • Method Details

    • render

      public void render(GuiGraphics p_305850_, int p_305808_, int p_305963_, int p_306050_, int p_306209_, int p_305982_, int p_306247_, int p_306293_, boolean p_306089_, float p_306015_)
      Specified by:
      render in class AbstractSelectionList.Entry<RealmsMainScreen.Entry>
    • mouseClicked

      public boolean mouseClicked(double p_306312_, double p_306107_, int p_306043_)
      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_306312_ - the X coordinate of the mouse.
      p_306107_ - the Y coordinate of the mouse.
      p_306043_ - the button that was clicked.
      Returns:
      true if the event is consumed, false otherwise.
    • keyPressed

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

      Parameters:
      p_306133_ - the key code of the pressed key.
      p_305857_ - the scan code of the pressed key.
      p_306123_ - the keyboard modifiers.
      Returns:
      true if the event is consumed, false otherwise.
    • addSnapshotRealm

      private void addSnapshotRealm()
    • getNarration

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