Class RealmsPendingInvitesScreen
java.lang.Object
net.minecraft.client.gui.DrawableHelper
net.minecraft.client.gui.AbstractParentElement
net.minecraft.client.gui.screen.Screen
net.minecraft.client.realms.gui.screen.RealmsScreen
net.minecraft.client.realms.gui.screen.RealmsPendingInvitesScreen
- All Implemented Interfaces:
Drawable
,Element
,ParentElement
,TickableElement
@Environment(CLIENT) public class RealmsPendingInvitesScreen extends RealmsScreen
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) class
RealmsPendingInvitesScreen.PendingInvitationSelectionList
(package private) class
RealmsPendingInvitesScreen.PendingInvitationSelectionListEntry
-
Field Summary
Fields Modifier and Type Field Description private static Identifier
ACCEPT_ICON
private ButtonWidget
acceptButton
private static Text
field_26493
private static Text
field_26494
private static Text
field_26495
private boolean
loaded
private static Logger
LOGGER
private Screen
parent
private RealmsPendingInvitesScreen.PendingInvitationSelectionList
pendingInvitationSelectionList
private static Identifier
REJECT_ICON
private ButtonWidget
rejectButton
private int
selectedInvite
private RealmsLabel
titleLabel
private Text
toolTip
Fields inherited from class net.minecraft.client.gui.screen.Screen
buttons, children, client, height, itemRenderer, passEvents, textRenderer, title, width
Fields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
-
Constructor Summary
Constructors Constructor Description RealmsPendingInvitesScreen(Screen parent)
-
Method Summary
Modifier and Type Method Description private void
accept(int slot)
void
init()
Called when a screen should be initialized.boolean
keyPressed(int keyCode, int scanCode, int modifiers)
Callback for when a key down event has been captured.private void
reject(int slot)
void
render(MatrixStack matrices, int mouseX, int mouseY, float delta)
protected void
renderMousehoverTooltip(MatrixStack matrixStack, Text text, int int2, int int3)
private boolean
shouldAcceptAndRejectButtonBeVisible(int invite)
private void
updateButtonStates()
private void
updateList(int slot)
Methods inherited from class net.minecraft.client.realms.gui.screen.RealmsScreen
narrateLabels, row, tick
Methods inherited from class net.minecraft.client.gui.screen.Screen
addButton, addChild, children, filesDragged, getNarrationMessage, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, onClose, removed, renderBackground, renderBackground, renderBackgroundTexture, renderOrderedTooltip, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, resize, sendMessage, sendMessage, shouldCloseOnEsc, wrapScreenError
Methods inherited from class net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocused
Methods inherited from class net.minecraft.client.gui.DrawableHelper
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, setZOffset
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.gui.Element
mouseMoved
Methods inherited from interface net.minecraft.client.gui.ParentElement
changeFocus, charTyped, focusOn, hoveredElement, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
-
Field Details
-
LOGGER
-
ACCEPT_ICON
-
REJECT_ICON
-
field_26493
-
field_26494
-
field_26495
-
parent
-
toolTip
-
loaded
private boolean loaded -
pendingInvitationSelectionList
-
titleLabel
-
selectedInvite
private int selectedInvite -
acceptButton
-
rejectButton
-
-
Constructor Details
-
RealmsPendingInvitesScreen
-
-
Method Details
-
init
public void init()Called when a screen should be initialized.This method is called when this screen is
opened
or resized. -
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 inGLFW
class.- Specified by:
keyPressed
in interfaceElement
- Specified by:
keyPressed
in interfaceParentElement
- Overrides:
keyPressed
in classScreen
- Parameters:
keyCode
- the named key code of the event as described in theGLFW
classscanCode
- the unique/platform-specific scan code of the keyboard inputmodifiers
- 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)
-
updateList
private void updateList(int slot) -
reject
private void reject(int slot) -
accept
private void accept(int slot) -
render
-
renderMousehoverTooltip
protected void renderMousehoverTooltip(MatrixStack matrixStack, @Nullable Text text, int int2, int int3) -
updateButtonStates
private void updateButtonStates() -
shouldAcceptAndRejectButtonBeVisible
private boolean shouldAcceptAndRejectButtonBeVisible(int invite)
-