Class RealmsPendingInvitesScreen

All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Renderable

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_88890_)
  • 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(PoseStack p_88899_, int p_88900_, int p_88901_, float p_88902_)
      Specified by:
      render in interface Renderable
      Overrides:
      render in class Screen
    • renderMousehoverTooltip

      protected void renderMousehoverTooltip(PoseStack p_88904_, @Nullable Component p_88905_, int p_88906_, int p_88907_)
    • updateButtonStates

      void updateButtonStates()
    • shouldAcceptAndRejectButtonBeVisible

      private boolean shouldAcceptAndRejectButtonBeVisible(int p_88963_)