Class RealmsPlayerScreen

All Implemented Interfaces:
Drawable, Element, ParentElement, TickableElement

@Environment(CLIENT)
public class RealmsPlayerScreen
extends RealmsScreen
  • Field Details

    • LOGGER

      private static final Logger LOGGER
    • OP_ICON

      private static final Identifier OP_ICON
    • USER_ICON

      private static final Identifier USER_ICON
    • CROSS_PLAYER_ICON

      private static final Identifier CROSS_PLAYER_ICON
    • OPTIONS_BACKGROUND

      private static final Identifier OPTIONS_BACKGROUND
    • field_26498

      private static final Text field_26498
    • field_26499

      private static final Text field_26499
    • field_26500

      private static final Text field_26500
    • field_26501

      private static final Text field_26501
    • tooltipText

      private Text tooltipText
    • parent

      private final RealmsConfigureWorldScreen parent
    • serverData

      private final RealmsServer serverData
    • invitedObjectSelectionList

      private RealmsPlayerScreen.InvitedObjectSelectionList invitedObjectSelectionList
    • column1_x

      private int column1_x
    • column_width

      private int column_width
    • column2_x

      private int column2_x
    • removeButton

      private ButtonWidget removeButton
    • opdeopButton

      private ButtonWidget opdeopButton
    • selectedInvitedIndex

      private int selectedInvitedIndex
    • selectedInvited

      private String selectedInvited
    • player

      private int player
    • stateChanged

      private boolean stateChanged
    • titleLabel

      private RealmsLabel titleLabel
    • operation

  • Constructor Details

  • Method Details

    • init

      public void init()
      Called when a screen should be initialized.

      This method is called when this screen is opened or resized.

      Overrides:
      init in class Screen
    • updateButtonStates

      private void updateButtonStates()
    • shouldRemoveAndOpdeopButtonBeVisible

      private boolean shouldRemoveAndOpdeopButtonBeVisible​(int player)
    • removed

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

      public boolean keyPressed​(int keyCode, int scanCode, int modifiers)
      Callback for when a key down event has been captured. The key code is identified by the constants in GLFW class.
      Specified by:
      keyPressed in interface Element
      Specified by:
      keyPressed in interface ParentElement
      Overrides:
      keyPressed in class Screen
      Parameters:
      keyCode - the named key code of the event as described in the GLFW class
      scanCode - the unique/platform-specific scan code of the keyboard input
      modifiers - a GLFW bitfield describing the modifier keys that are held down (see {@linkplain https://www.glfw.org/docs/3.3/group__mods.html GLFW Modifier key flags})
      Returns:
      true to indicate that the event handling is successful/valid
      See Also:
      Keyboard.onKey(long, int, int, int, int), GLFW.GLFW_KEY_Q, GLFWKeyCallbackI.invoke(long, int, int, int, int)
    • backButtonClicked

      private void backButtonClicked()
    • op

      private void op​(int index)
    • deop

      private void deop​(int index)
    • updateOps

      private void updateOps​(Ops ops)
    • uninvite

      private void uninvite​(int index)
    • deleteFromInvitedList

      private void deleteFromInvitedList​(int selectedInvitedIndex)
    • render

      public void render​(MatrixStack matrices, int mouseX, int mouseY, float delta)
      Specified by:
      render in interface Drawable
      Overrides:
      render in class Screen
    • renderMousehoverTooltip

      protected void renderMousehoverTooltip​(MatrixStack matrices, @Nullable Text text, int mouseX, int mouseY)
    • drawRemoveIcon

      private void drawRemoveIcon​(MatrixStack matrixStack, int int2, int int3, int int4, int int5)
    • drawOpped

      private void drawOpped​(MatrixStack matrixStack, int int2, int int3, int int4, int int5)
    • drawNormal

      private void drawNormal​(MatrixStack matrixStack, int int2, int int3, int int4, int int5)