Class RealmsPendingInvitesScreen

All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement

public class RealmsPendingInvitesScreen extends RealmsScreen
  • Field Details

    • LOGGER

      static final org.slf4j.Logger LOGGER
    • ACCEPT_ICON_LOCATION

      static final ResourceLocation ACCEPT_ICON_LOCATION
    • REJECT_ICON_LOCATION

      static final ResourceLocation REJECT_ICON_LOCATION
    • NO_PENDING_INVITES_TEXT

      private static final Component NO_PENDING_INVITES_TEXT
    • ACCEPT_INVITE_TOOLTIP

      static final Component ACCEPT_INVITE_TOOLTIP
    • REJECT_INVITE_TOOLTIP

      static final Component REJECT_INVITE_TOOLTIP
    • lastScreen

      private final Screen lastScreen
    • toolTip

      @Nullable Component toolTip
    • loaded

      boolean loaded
    • pendingInvitationSelectionList

    • selectedInvite

      int selectedInvite
    • acceptButton

      private Button acceptButton
    • rejectButton

      private Button rejectButton
  • Constructor Details

    • RealmsPendingInvitesScreen

      public RealmsPendingInvitesScreen(Screen p_279260_, Component p_279122_)
  • Method Details

    • init

      public void init()
      Overrides:
      init in class Screen
    • keyPressed

      public boolean keyPressed(int p_88895_, int p_88896_, int p_88897_)
      Specified by:
      keyPressed in interface ContainerEventHandler
      Specified by:
      keyPressed in interface GuiEventListener
      Overrides:
      keyPressed in class Screen
    • updateList

      void updateList(int p_88893_)
    • reject

      void reject(int p_88923_)
    • accept

      void accept(int p_88933_)
    • render

      public void render(GuiGraphics p_282787_, int p_88900_, int p_88901_, float p_88902_)
      Specified by:
      render in interface Renderable
      Overrides:
      render in class Screen
    • renderMousehoverTooltip

      protected void renderMousehoverTooltip(GuiGraphics p_282344_, @Nullable Component p_283454_, int p_281609_, int p_283288_)
    • updateButtonStates

      void updateButtonStates()
    • shouldAcceptAndRejectButtonBeVisible

      private boolean shouldAcceptAndRejectButtonBeVisible(int p_88963_)