@Environment(value=CLIENT) public class SocialInteractionsScreen extends Screen
| Modifier and Type | Class and Description |
|---|---|
static class |
SocialInteractionsScreen.Tab |
| Modifier and Type | Field and Description |
|---|---|
private static Text |
ALL_TAB_TITLE |
private ButtonWidget |
allTabButton |
private String |
currentSearch |
private SocialInteractionsScreen.Tab |
currentTab |
private static Text |
EMPTY_HIDDEN_TEXT |
private boolean |
field_26873 |
private Runnable |
field_26874 |
private ButtonWidget |
field_26913 |
private ButtonWidget |
field_26914 |
private static Text |
field_26915 |
private static Text |
field_26916 |
private static Text |
field_26917 |
private static Text |
field_26918 |
private static Text |
field_26919 |
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_HIDDEN_TAB_TITLE |
private Text |
serverLabel |
protected static Identifier |
SOCIAL_INTERACTIONS_TEXTURE |
buttons, children, client, height, itemRenderer, passEvents, textRenderer, title, widthGUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE| Constructor and Description |
|---|
SocialInteractionsScreen() |
| Modifier and Type | Method and 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_31353(PlayerListEntry playerListEntry) |
void |
method_31354(Runnable runnable) |
void |
method_31355(UUID uUID) |
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 |
tick() |
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, resize, sendMessage, sendMessage, shouldCloseOnEsc, wrapScreenErrorgetFocused, isDragging, setDragging, setFocuseddrawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, setZOffsetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchangeFocus, charTyped, focusOn, hoveredElement, keyReleased, mouseDragged, mouseReleased, mouseScrolled, setInitialFocusmouseMovedprotected static final Identifier SOCIAL_INTERACTIONS_TEXTURE
private static final Text ALL_TAB_TITLE
private static final Text HIDDEN_TAB_TITLE
private static final Text field_26915
private static final Text SELECTED_ALL_TAB_TITLE
private static final Text SELECTED_HIDDEN_TAB_TITLE
private static final Text field_26916
private static final Text SEARCH_TEXT
private static final Text field_26917
private static final Text EMPTY_HIDDEN_TEXT
private static final Text field_26918
private static final Text field_26919
private SocialInteractionsPlayerListWidget playerList
private TextFieldWidget searchBox
private String currentSearch
private SocialInteractionsScreen.Tab currentTab
private ButtonWidget allTabButton
private ButtonWidget hiddenTabButton
private ButtonWidget field_26913
private ButtonWidget field_26914
private int playerCount
private boolean field_26873
private int method_31359()
private int method_31360()
private int method_31361()
private int method_31362()
public String getNarrationMessage()
getNarrationMessage in class Screenpublic void tick()
tick in interface TickableElementtick in class Screenprotected void init()
This method is called when this screen is opened or resized.
private void setCurrentTab(SocialInteractionsScreen.Tab currentTab)
public void renderBackground(MatrixStack matrices)
If the client is in a world, renders the translucent background gradient. Otherwise renders the background texture.
renderBackground in class Screenpublic void render(MatrixStack matrices, int mouseX, int mouseY, float delta)
public boolean mouseClicked(double mouseX,
double mouseY,
int button)
GLFW class.mouseX - the X coordinate of the mousemouseY - the Y coordinate of the mousebutton - the mouse button numbertrue to indicate that the event handling is successful/validMouse.onMouseButton(long, int, int, int),
GLFW.GLFW_MOUSE_BUTTON_1public boolean keyPressed(int keyCode,
int scanCode,
int modifiers)
GLFW class.keyPressed in interface ElementkeyPressed in interface ParentElementkeyPressed in class ScreenkeyCode - the named key code of the event as described in the GLFW 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)true to indicate that the event handling is successful/validKeyboard.onKey(long, int, int, int, int),
GLFW.GLFW_KEY_Q,
GLFWKeyCallbackI.invoke(long, int, int, int, int)public boolean isPauseScreen()
isPauseScreen in class Screenprivate void onSearchChange(String currentSearch)
private void method_31350(MinecraftClient minecraftClient)
public void method_31353(PlayerListEntry playerListEntry)
public void method_31355(UUID uUID)