Class SocialInteractionsScreen
java.lang.Object
net.minecraft.client.gui.DrawableHelper
net.minecraft.client.gui.AbstractParentElement
net.minecraft.client.gui.screen.Screen
net.minecraft.client.gui.screen.multiplayer.SocialInteractionsScreen
- All Implemented Interfaces:
Drawable
,Element
,ParentElement
,TickableElement
@Environment(CLIENT) public class SocialInteractionsScreen extends Screen
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SocialInteractionsScreen.Tab
-
Field Summary
Fields Modifier and Type Field Description private static Text
ALL_TAB_TITLE
private ButtonWidget
allTabButton
private static Text
BLOCKED_TAB_TITLE
private ButtonWidget
blockedTabButton
private static Text
BLOCKING_TEXT
private ButtonWidget
blockingButton
private String
currentSearch
private SocialInteractionsScreen.Tab
currentTab
private static Text
EMPTY_BLOCKED_TEXT
private static Text
EMPTY_HIDDEN_TEXT
private static Text
EMPTY_SEARCH_TEXT
private boolean
field_26873
private Runnable
field_26874
private static Text
HIDDEN_TAB_TITLE
private ButtonWidget
hiddenTabButton
private int
playerCount
private SocialInteractionsPlayerListWidget
playerList
private static Text
SEARCH_TEXT
private TextFieldWidget
searchBox
private static Text
SELECTED_ALL_TAB_TITLE
private static Text
SELECTED_BLOCKED_TAB_TITLE
private static Text
SELECTED_HIDDEN_TAB_TITLE
private Text
serverLabel
protected static Identifier
SOCIAL_INTERACTIONS_TEXTURE
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 SocialInteractionsScreen()
-
Method Summary
Modifier and Type Method Description String
getNarrationMessage()
protected void
init()
Called when a screen should be initialized.boolean
isPauseScreen()
boolean
keyPressed(int keyCode, int scanCode, int modifiers)
Callback for when a key down event has been captured.private void
method_31350(MinecraftClient minecraftClient)
void
method_31354(Runnable runnable)
private int
method_31359()
private int
method_31360()
private int
method_31361()
private int
method_31362()
boolean
mouseClicked(double mouseX, double mouseY, int button)
Callback for when a mouse button down event has been captured.private void
onSearchChange(String currentSearch)
void
removed()
void
render(MatrixStack matrices, int mouseX, int mouseY, float delta)
void
renderBackground(MatrixStack matrices)
Renders the background of this screen.private void
setCurrentTab(SocialInteractionsScreen.Tab currentTab)
void
setPlayerOffline(UUID uuid)
void
setPlayerOnline(PlayerListEntry player)
void
tick()
Methods inherited from class net.minecraft.client.gui.screen.Screen
addButton, addChild, children, filesDragged, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, onClose, renderBackground, renderBackgroundTexture, renderOrderedTooltip, renderTextHoverEffect, renderTooltip, 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, method_33284, 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, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
-
Field Details
-
SOCIAL_INTERACTIONS_TEXTURE
-
ALL_TAB_TITLE
-
HIDDEN_TAB_TITLE
-
BLOCKED_TAB_TITLE
-
SELECTED_ALL_TAB_TITLE
-
SELECTED_HIDDEN_TAB_TITLE
-
SELECTED_BLOCKED_TAB_TITLE
-
SEARCH_TEXT
-
EMPTY_SEARCH_TEXT
-
EMPTY_HIDDEN_TEXT
-
EMPTY_BLOCKED_TEXT
-
BLOCKING_TEXT
-
playerList
-
searchBox
-
currentSearch
-
currentTab
-
allTabButton
-
blockedTabButton
-
blockingButton
-
serverLabel
-
playerCount
private int playerCount -
field_26873
private boolean field_26873 -
field_26874
-
-
Constructor Details
-
SocialInteractionsScreen
public SocialInteractionsScreen()
-
-
Method Details
-
method_31359
private int method_31359() -
method_31360
private int method_31360() -
method_31361
private int method_31361() -
method_31362
private int method_31362() -
getNarrationMessage
- Overrides:
getNarrationMessage
in classScreen
-
tick
public void tick()- Specified by:
tick
in interfaceTickableElement
- Overrides:
tick
in classScreen
-
init
protected void init()Called when a screen should be initialized.This method is called when this screen is opened or resized.
-
setCurrentTab
-
removed
public void removed() -
renderBackground
Renders the background of this screen.If the client is in a world, renders the translucent background gradient. Otherwise renders the background texture.
- Overrides:
renderBackground
in classScreen
-
render
-
mouseClicked
public boolean mouseClicked(double mouseX, double mouseY, int button)Callback for when a mouse button down event has been captured. The button number is identified by the constants inGLFW
class.- Parameters:
mouseX
- the X coordinate of the mousemouseY
- the Y coordinate of the mousebutton
- the mouse button number- Returns:
true
to indicate that the event handling is successful/valid- See Also:
Mouse.onMouseButton(long, int, int, int)
,GLFW.GLFW_MOUSE_BUTTON_1
-
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 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)
-
isPauseScreen
public boolean isPauseScreen()- Overrides:
isPauseScreen
in classScreen
-
onSearchChange
-
method_31350
-
setPlayerOnline
-
setPlayerOffline
-
method_31354
-