Class RealmsPlayerScreen
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.RealmsPlayerScreen
- All Implemented Interfaces:
Drawable,Element,ParentElement,TickableElement
@Environment(CLIENT) public class RealmsPlayerScreen extends RealmsScreen
- Mappings:
Namespace Name official dsfintermediary net/minecraft/class_4406named net/minecraft/client/realms/gui/screen/RealmsPlayerScreen
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) classRealmsPlayerScreen.InvitedObjectSelectionList(package private) classRealmsPlayerScreen.InvitedObjectSelectionListEntry(package private) static classRealmsPlayerScreen.PlayerOperation -
Field Summary
Fields Modifier and Type Field Description private intcolumn_widthprivate intcolumn1_xprivate intcolumn2_xprivate static IdentifierCROSS_PLAYER_ICONprivate static TextINVITED_TEXTprivate RealmsPlayerScreen.InvitedObjectSelectionListinvitedObjectSelectionListprivate static LoggerLOGGERprivate static TextNORMAL_TOOLTIPprivate static IdentifierOP_ICONprivate ButtonWidgetopdeopButtonprivate RealmsPlayerScreen.PlayerOperationoperationprivate static TextOPERATOR_TOOLTIPprivate static IdentifierOPTIONS_BACKGROUNDprivate RealmsConfigureWorldScreenparentprivate intplayerprivate static TextREMOVE_TOOLTIPprivate ButtonWidgetremoveButtonprivate StringselectedInvitedprivate intselectedInvitedIndexprivate RealmsServerserverDataprivate booleanstateChangedprivate RealmsLabeltitleLabelprivate TexttooltipTextprivate static IdentifierUSER_ICONFields inherited from class net.minecraft.client.realms.gui.screen.RealmsScreen
field_33036, field_33037, field_33038, field_33039, field_33040, field_33041, field_33042, field_33043, field_33044, field_33045, field_33046, field_33047, field_33048, field_33049, field_33050, field_33051, field_33052, field_33053, field_33054, field_33055, field_33056, field_33057, field_33058, field_33059, field_33060, field_33061, field_33062, field_33063, field_33064, field_33065Fields inherited from class net.minecraft.client.gui.screen.Screen
buttons, children, client, height, itemRenderer, passEvents, textRenderer, title, widthFields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE -
Constructor Summary
Constructors Constructor Description RealmsPlayerScreen(RealmsConfigureWorldScreen parent, RealmsServer serverData) -
Method Summary
Modifier and Type Method Description private voidbackButtonClicked()private voiddeleteFromInvitedList(int selectedInvitedIndex)private voiddeop(int index)private voiddrawNormal(MatrixStack matrices, int int2, int int3, int int4, int int5)private voiddrawOpped(MatrixStack matrices, int int2, int int3, int int4, int int5)private voiddrawRemoveIcon(MatrixStack matrices, int int2, int int3, int int4, int int5)voidinit()Called when a screen should be initialized.booleankeyPressed(int keyCode, int scanCode, int modifiers)Callback for when a key down event has been captured.private voidop(int index)voidremoved()voidrender(MatrixStack matrices, int mouseX, int mouseY, float delta)protected voidrenderMousehoverTooltip(MatrixStack matrices, @Nullable Text text, int mouseX, int mouseY)private booleanshouldRemoveAndOpdeopButtonBeVisible(int player)private voiduninvite(int index)private voidupdateButtonStates()private voidupdateOps(Ops ops)Methods inherited from class net.minecraft.client.realms.gui.screen.RealmsScreen
narrateLabels, row, tickMethods 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, renderBackground, renderBackground, renderBackgroundTexture, renderOrderedTooltip, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, renderTooltip, resize, sendMessage, sendMessage, shouldCloseOnEsc, wrapScreenErrorMethods inherited from class net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocusedMethods 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, method_33284, method_35719, method_35720, setZOffsetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.Element
mouseMovedMethods inherited from interface net.minecraft.client.gui.ParentElement
changeFocus, charTyped, focusOn, hoveredElement, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official aLdsf;a:Lorg/apache/logging/log4j/Logger;intermediary field_19958Lnet/minecraft/class_4406;field_19958:Lorg/apache/logging/log4j/Logger;named LOGGERLnet/minecraft/client/realms/gui/screen/RealmsPlayerScreen;LOGGER:Lorg/apache/logging/log4j/Logger;
-
OP_ICON
- Mappings:
Namespace Name Mixin selector official bLdsf;b:Lwp;intermediary field_22704Lnet/minecraft/class_4406;field_22704:Lnet/minecraft/class_2960;named OP_ICONLnet/minecraft/client/realms/gui/screen/RealmsPlayerScreen;OP_ICON:Lnet/minecraft/util/Identifier;
-
USER_ICON
- Mappings:
Namespace Name Mixin selector official cLdsf;c:Lwp;intermediary field_22705Lnet/minecraft/class_4406;field_22705:Lnet/minecraft/class_2960;named USER_ICONLnet/minecraft/client/realms/gui/screen/RealmsPlayerScreen;USER_ICON:Lnet/minecraft/util/Identifier;
-
CROSS_PLAYER_ICON
- Mappings:
Namespace Name Mixin selector official TLdsf;T:Lwp;intermediary field_22706Lnet/minecraft/class_4406;field_22706:Lnet/minecraft/class_2960;named CROSS_PLAYER_ICONLnet/minecraft/client/realms/gui/screen/RealmsPlayerScreen;CROSS_PLAYER_ICON:Lnet/minecraft/util/Identifier;
-
OPTIONS_BACKGROUND
- Mappings:
Namespace Name Mixin selector official ULdsf;U:Lwp;intermediary field_22707Lnet/minecraft/class_4406;field_22707:Lnet/minecraft/class_2960;named OPTIONS_BACKGROUNDLnet/minecraft/client/realms/gui/screen/RealmsPlayerScreen;OPTIONS_BACKGROUND:Lnet/minecraft/util/Identifier;
-
NORMAL_TOOLTIP
- Mappings:
Namespace Name Mixin selector official VLdsf;V:Lon;intermediary field_26498Lnet/minecraft/class_4406;field_26498:Lnet/minecraft/class_2561;named NORMAL_TOOLTIPLnet/minecraft/client/realms/gui/screen/RealmsPlayerScreen;NORMAL_TOOLTIP:Lnet/minecraft/text/Text;
-
OPERATOR_TOOLTIP
- Mappings:
Namespace Name Mixin selector official WLdsf;W:Lon;intermediary field_26499Lnet/minecraft/class_4406;field_26499:Lnet/minecraft/class_2561;named OPERATOR_TOOLTIPLnet/minecraft/client/realms/gui/screen/RealmsPlayerScreen;OPERATOR_TOOLTIP:Lnet/minecraft/text/Text;
-
REMOVE_TOOLTIP
- Mappings:
Namespace Name Mixin selector official XLdsf;X:Lon;intermediary field_26500Lnet/minecraft/class_4406;field_26500:Lnet/minecraft/class_2561;named REMOVE_TOOLTIPLnet/minecraft/client/realms/gui/screen/RealmsPlayerScreen;REMOVE_TOOLTIP:Lnet/minecraft/text/Text;
-
INVITED_TEXT
- Mappings:
Namespace Name Mixin selector official YLdsf;Y:Lon;intermediary field_26501Lnet/minecraft/class_4406;field_26501:Lnet/minecraft/class_2561;named INVITED_TEXTLnet/minecraft/client/realms/gui/screen/RealmsPlayerScreen;INVITED_TEXT:Lnet/minecraft/text/Text;
-
tooltipText
- Mappings:
Namespace Name Mixin selector official ZLdsf;Z:Lon;intermediary field_19959Lnet/minecraft/class_4406;field_19959:Lnet/minecraft/class_2561;named tooltipTextLnet/minecraft/client/realms/gui/screen/RealmsPlayerScreen;tooltipText:Lnet/minecraft/text/Text;
-
parent
- Mappings:
Namespace Name Mixin selector official aaLdsf;aa:Ldru;intermediary field_19960Lnet/minecraft/class_4406;field_19960:Lnet/minecraft/class_4388;named parentLnet/minecraft/client/realms/gui/screen/RealmsPlayerScreen;parent:Lnet/minecraft/client/realms/gui/screen/RealmsConfigureWorldScreen;
-
serverData
- Mappings:
Namespace Name Mixin selector official abLdsf;ab:Ldqn;intermediary field_19961Lnet/minecraft/class_4406;field_19961:Lnet/minecraft/class_4877;named serverDataLnet/minecraft/client/realms/gui/screen/RealmsPlayerScreen;serverData:Lnet/minecraft/client/realms/dto/RealmsServer;
-
invitedObjectSelectionList
- Mappings:
Namespace Name Mixin selector official acLdsf;ac:Ldsf$b;intermediary field_19962Lnet/minecraft/class_4406;field_19962:Lnet/minecraft/class_4406$class_4407;named invitedObjectSelectionListLnet/minecraft/client/realms/gui/screen/RealmsPlayerScreen;invitedObjectSelectionList:Lnet/minecraft/client/realms/gui/screen/RealmsPlayerScreen$InvitedObjectSelectionList;
-
column1_x
private int column1_x- Mappings:
Namespace Name Mixin selector official adLdsf;ad:Iintermediary field_19963Lnet/minecraft/class_4406;field_19963:Inamed column1_xLnet/minecraft/client/realms/gui/screen/RealmsPlayerScreen;column1_x:I
-
column_width
private int column_width- Mappings:
Namespace Name Mixin selector official aeLdsf;ae:Iintermediary field_19964Lnet/minecraft/class_4406;field_19964:Inamed column_widthLnet/minecraft/client/realms/gui/screen/RealmsPlayerScreen;column_width:I
-
column2_x
private int column2_x- Mappings:
Namespace Name Mixin selector official afLdsf;af:Iintermediary field_19965Lnet/minecraft/class_4406;field_19965:Inamed column2_xLnet/minecraft/client/realms/gui/screen/RealmsPlayerScreen;column2_x:I
-
removeButton
- Mappings:
Namespace Name Mixin selector official agLdsf;ag:Ldvw;intermediary field_19966Lnet/minecraft/class_4406;field_19966:Lnet/minecraft/class_4185;named removeButtonLnet/minecraft/client/realms/gui/screen/RealmsPlayerScreen;removeButton:Lnet/minecraft/client/gui/widget/ButtonWidget;
-
opdeopButton
- Mappings:
Namespace Name Mixin selector official ahLdsf;ah:Ldvw;intermediary field_19967Lnet/minecraft/class_4406;field_19967:Lnet/minecraft/class_4185;named opdeopButtonLnet/minecraft/client/realms/gui/screen/RealmsPlayerScreen;opdeopButton:Lnet/minecraft/client/gui/widget/ButtonWidget;
-
selectedInvitedIndex
private int selectedInvitedIndex- Mappings:
Namespace Name Mixin selector official aiLdsf;ai:Iintermediary field_19968Lnet/minecraft/class_4406;field_19968:Inamed selectedInvitedIndexLnet/minecraft/client/realms/gui/screen/RealmsPlayerScreen;selectedInvitedIndex:I
-
selectedInvited
- Mappings:
Namespace Name Mixin selector official ajLdsf;aj:Ljava/lang/String;intermediary field_19969Lnet/minecraft/class_4406;field_19969:Ljava/lang/String;named selectedInvitedLnet/minecraft/client/realms/gui/screen/RealmsPlayerScreen;selectedInvited:Ljava/lang/String;
-
player
private int player- Mappings:
Namespace Name Mixin selector official akLdsf;ak:Iintermediary field_19970Lnet/minecraft/class_4406;field_19970:Inamed playerLnet/minecraft/client/realms/gui/screen/RealmsPlayerScreen;player:I
-
stateChanged
private boolean stateChanged- Mappings:
Namespace Name Mixin selector official alLdsf;al:Zintermediary field_19971Lnet/minecraft/class_4406;field_19971:Znamed stateChangedLnet/minecraft/client/realms/gui/screen/RealmsPlayerScreen;stateChanged:Z
-
titleLabel
- Mappings:
Namespace Name Mixin selector official amLdsf;am:Lfan;intermediary field_19972Lnet/minecraft/class_4406;field_19972:Lnet/minecraft/class_4903;named titleLabelLnet/minecraft/client/realms/gui/screen/RealmsPlayerScreen;titleLabel:Lnet/minecraft/client/realms/RealmsLabel;
-
operation
- Mappings:
Namespace Name Mixin selector official anLdsf;an:Ldsf$c;intermediary field_26496Lnet/minecraft/class_4406;field_26496:Lnet/minecraft/class_4406$class_5488;named operationLnet/minecraft/client/realms/gui/screen/RealmsPlayerScreen;operation:Lnet/minecraft/client/realms/gui/screen/RealmsPlayerScreen$PlayerOperation;
-
-
Constructor Details
-
RealmsPlayerScreen
- Mappings:
Namespace Name Mixin selector official <init>Ldsf;<init>(Ldru;Ldqn;)Vintermediary <init>Lnet/minecraft/class_4406;<init>(Lnet/minecraft/class_4388;Lnet/minecraft/class_4877;)Vnamed <init>Lnet/minecraft/client/realms/gui/screen/RealmsPlayerScreen;<init>(Lnet/minecraft/client/realms/gui/screen/RealmsConfigureWorldScreen;Lnet/minecraft/client/realms/dto/RealmsServer;)V
-
-
Method Details
-
init
public void init()Called when a screen should be initialized.This method is called when this screen is opened or resized.
-
updateButtonStates
private void updateButtonStates()- Mappings:
Namespace Name Mixin selector official hLdsf;h()Vintermediary method_21325Lnet/minecraft/class_4406;method_21325()Vnamed updateButtonStatesLnet/minecraft/client/realms/gui/screen/RealmsPlayerScreen;updateButtonStates()V
-
shouldRemoveAndOpdeopButtonBeVisible
private boolean shouldRemoveAndOpdeopButtonBeVisible(int player)- Mappings:
Namespace Name Mixin selector official kLdsf;k(I)Zintermediary method_21326Lnet/minecraft/class_4406;method_21326(I)Znamed shouldRemoveAndOpdeopButtonBeVisibleLnet/minecraft/client/realms/gui/screen/RealmsPlayerScreen;shouldRemoveAndOpdeopButtonBeVisible(I)Z
-
removed
public void removed() -
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 inGLFWclass.- Specified by:
keyPressedin interfaceElement- Specified by:
keyPressedin interfaceParentElement- Overrides:
keyPressedin classScreen- Parameters:
keyCode- the named key code of the event as described in theGLFWclassscanCode- the unique/platform-specific scan code of the keyboard inputmodifiers- a GLFW bitfield describing the modifier keys that are held down (see GLFW Modifier key flags)- Returns:
trueto 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)- Mappings:
Namespace Name Mixin selector official aLdwv;a(III)Zintermediary method_25404Lnet/minecraft/class_364;method_25404(III)Znamed keyPressedLnet/minecraft/client/gui/Element;keyPressed(III)Z
-
backButtonClicked
private void backButtonClicked()- Mappings:
Namespace Name Mixin selector official iLdsf;i()Vintermediary method_21333Lnet/minecraft/class_4406;method_21333()Vnamed backButtonClickedLnet/minecraft/client/realms/gui/screen/RealmsPlayerScreen;backButtonClicked()V
-
op
private void op(int index)- Mappings:
Namespace Name Mixin selector official lLdsf;l(I)Vintermediary method_21334Lnet/minecraft/class_4406;method_21334(I)Vnamed opLnet/minecraft/client/realms/gui/screen/RealmsPlayerScreen;op(I)V
-
deop
private void deop(int index)- Mappings:
Namespace Name Mixin selector official mLdsf;m(I)Vintermediary method_21339Lnet/minecraft/class_4406;method_21339(I)Vnamed deopLnet/minecraft/client/realms/gui/screen/RealmsPlayerScreen;deop(I)V
-
updateOps
- Mappings:
Namespace Name Mixin selector official aLdsf;a(Ldqg;)Vintermediary method_21328Lnet/minecraft/class_4406;method_21328(Lnet/minecraft/class_4870;)Vnamed updateOpsLnet/minecraft/client/realms/gui/screen/RealmsPlayerScreen;updateOps(Lnet/minecraft/client/realms/dto/Ops;)V
-
uninvite
private void uninvite(int index)- Mappings:
Namespace Name Mixin selector official nLdsf;n(I)Vintermediary method_21344Lnet/minecraft/class_4406;method_21344(I)Vnamed uninviteLnet/minecraft/client/realms/gui/screen/RealmsPlayerScreen;uninvite(I)V
-
deleteFromInvitedList
private void deleteFromInvitedList(int selectedInvitedIndex)- Mappings:
Namespace Name Mixin selector official oLdsf;o(I)Vintermediary method_21347Lnet/minecraft/class_4406;method_21347(I)Vnamed deleteFromInvitedListLnet/minecraft/client/realms/gui/screen/RealmsPlayerScreen;deleteFromInvitedList(I)V
-
render
- Specified by:
renderin interfaceDrawable- Overrides:
renderin classScreen- Mappings:
Namespace Name Mixin selector official aLdws;a(Ldpi;IIF)Vintermediary method_25394Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_4587;IIF)Vnamed renderLnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/util/math/MatrixStack;IIF)V
-
renderMousehoverTooltip
protected void renderMousehoverTooltip(MatrixStack matrices, @Nullable @Nullable Text text, int mouseX, int mouseY)- Mappings:
Namespace Name Mixin selector official aLdsf;a(Ldpi;Lon;II)Vintermediary method_21332Lnet/minecraft/class_4406;method_21332(Lnet/minecraft/class_4587;Lnet/minecraft/class_2561;II)Vnamed renderMousehoverTooltipLnet/minecraft/client/realms/gui/screen/RealmsPlayerScreen;renderMousehoverTooltip(Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/text/Text;II)V
-
drawRemoveIcon
- Mappings:
Namespace Name Mixin selector official cLdsf;c(Ldpi;IIII)Vintermediary method_21327Lnet/minecraft/class_4406;method_21327(Lnet/minecraft/class_4587;IIII)Vnamed drawRemoveIconLnet/minecraft/client/realms/gui/screen/RealmsPlayerScreen;drawRemoveIcon(Lnet/minecraft/client/util/math/MatrixStack;IIII)V
-
drawOpped
- Mappings:
Namespace Name Mixin selector official dLdsf;d(Ldpi;IIII)Vintermediary method_21335Lnet/minecraft/class_4406;method_21335(Lnet/minecraft/class_4587;IIII)Vnamed drawOppedLnet/minecraft/client/realms/gui/screen/RealmsPlayerScreen;drawOpped(Lnet/minecraft/client/util/math/MatrixStack;IIII)V
-
drawNormal
- Mappings:
Namespace Name Mixin selector official eLdsf;e(Ldpi;IIII)Vintermediary method_21340Lnet/minecraft/class_4406;method_21340(Lnet/minecraft/class_4587;IIII)Vnamed drawNormalLnet/minecraft/client/realms/gui/screen/RealmsPlayerScreen;drawNormal(Lnet/minecraft/client/util/math/MatrixStack;IIII)V
-