Class RealmsPendingInvitesScreen

All Implemented Interfaces:
IGuiEventListener, INestedGuiEventHandler, IRenderable, IScreen

public class RealmsPendingInvitesScreen extends RealmsScreen
  • Field Details

    • LOGGER

      private static final org.apache.logging.log4j.Logger LOGGER
    • ACCEPT_ICON_LOCATION

      private static final ResourceLocation ACCEPT_ICON_LOCATION
    • REJECT_ICON_LOCATION

      private static final ResourceLocation REJECT_ICON_LOCATION
    • NO_PENDING_INVITES_TEXT

      private static final ITextComponent NO_PENDING_INVITES_TEXT
    • ACCEPT_INVITE_TOOLTIP

      private static final ITextComponent ACCEPT_INVITE_TOOLTIP
    • REJECT_INVITE_TOOLTIP

      private static final ITextComponent REJECT_INVITE_TOOLTIP
    • lastScreen

      private final Screen lastScreen
    • toolTip

      @Nullable private ITextComponent toolTip
    • loaded

      private boolean loaded
    • pendingInvitationSelectionList

      private RealmsPendingInvitesScreen.InvitationList pendingInvitationSelectionList
    • titleLabel

      private RealmsLabel titleLabel
    • selectedInvite

      private int selectedInvite
    • acceptButton

      private Button acceptButton
    • rejectButton

      private Button rejectButton
  • Constructor Details

    • RealmsPendingInvitesScreen

      public RealmsPendingInvitesScreen(Screen p_i232211_1_)
  • Method Details

    • init

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

      public boolean keyPressed(int p_231046_1_, int p_231046_2_, int p_231046_3_)
      Specified by:
      keyPressed in interface IGuiEventListener
      Specified by:
      keyPressed in interface INestedGuiEventHandler
      Overrides:
      keyPressed in class Screen
    • updateList

      private void updateList(int p_224318_1_)
    • reject

      private void reject(int p_224321_1_)
    • accept

      private void accept(int p_224329_1_)
    • render

      public void render(MatrixStack p_230430_1_, int p_230430_2_, int p_230430_3_, float p_230430_4_)
      Specified by:
      render in interface IRenderable
      Overrides:
      render in class Screen
    • renderMousehoverTooltip

      protected void renderMousehoverTooltip(MatrixStack p_237866_1_, @Nullable ITextComponent p_237866_2_, int p_237866_3_, int p_237866_4_)
    • updateButtonStates

      private void updateButtonStates()
    • shouldAcceptAndRejectButtonBeVisible

      private boolean shouldAcceptAndRejectButtonBeVisible(int p_224316_1_)