Class RealmsPlayerScreen

All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Widget

public class RealmsPlayerScreen extends RealmsScreen
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • OP_ICON_LOCATION

      private static final ResourceLocation OP_ICON_LOCATION
    • USER_ICON_LOCATION

      private static final ResourceLocation USER_ICON_LOCATION
    • CROSS_ICON_LOCATION

      private static final ResourceLocation CROSS_ICON_LOCATION
    • OPTIONS_BACKGROUND

      private static final ResourceLocation OPTIONS_BACKGROUND
    • NORMAL_USER_TOOLTIP

      private static final Component NORMAL_USER_TOOLTIP
    • OP_TOOLTIP

      private static final Component OP_TOOLTIP
    • REMOVE_ENTRY_TOOLTIP

      private static final Component REMOVE_ENTRY_TOOLTIP
    • INVITED_LABEL

      private static final Component INVITED_LABEL
    • toolTip

      @Nullable private Component toolTip
    • lastScreen

      private final RealmsConfigureWorldScreen lastScreen
    • serverData

      final RealmsServer serverData
    • invitedObjectSelectionList

      private RealmsPlayerScreen.InvitedObjectSelectionList invitedObjectSelectionList
    • column1X

      int column1X
    • columnWidth

      int columnWidth
    • column2X

      private int column2X
    • removeButton

      private Button removeButton
    • opdeopButton

      private Button opdeopButton
    • selectedInvitedIndex

      private int selectedInvitedIndex
    • selectedInvited

      private String selectedInvited
    • player

      int player
    • stateChanged

      private boolean stateChanged
    • hoveredUserAction

  • Constructor Details

  • Method Details

    • init

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

      void updateButtonStates()
    • shouldRemoveAndOpdeopButtonBeVisible

      private boolean shouldRemoveAndOpdeopButtonBeVisible(int p_89191_)
    • removed

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

      public boolean keyPressed(int p_89094_, int p_89095_, int p_89096_)
      Specified by:
      keyPressed in interface ContainerEventHandler
      Specified by:
      keyPressed in interface GuiEventListener
      Overrides:
      keyPressed in class Screen
    • backButtonClicked

      private void backButtonClicked()
    • op

      void op(int p_89193_)
    • deop

      void deop(int p_89195_)
    • updateOps

      private void updateOps(Ops p_89108_)
    • uninvite

      void uninvite(int p_89197_)
    • deleteFromInvitedList

      private void deleteFromInvitedList(int p_89199_)
    • render

      public void render(PoseStack p_89098_, int p_89099_, int p_89100_, float p_89101_)
      Specified by:
      render in interface Widget
      Overrides:
      render in class Screen
    • renderMousehoverTooltip

      protected void renderMousehoverTooltip(PoseStack p_89103_, @Nullable Component p_89104_, int p_89105_, int p_89106_)
    • drawRemoveIcon

      void drawRemoveIcon(PoseStack p_89143_, int p_89144_, int p_89145_, int p_89146_, int p_89147_)
    • drawOpped

      void drawOpped(PoseStack p_89165_, int p_89166_, int p_89167_, int p_89168_, int p_89169_)
    • drawNormal

      void drawNormal(PoseStack p_89179_, int p_89180_, int p_89181_, int p_89182_, int p_89183_)