Class SocialInteractionsScreen
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.social.SocialInteractionsScreen
- All Implemented Interfaces:
ContainerEventHandler,GuiEventListener,Renderable,TabOrderedElement
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen
Screen.NarratableSearchResult -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Buttonprivate static final ResourceLocationprivate static final intprivate static final intprivate Buttonprivate static final Componentprivate Buttonprivate static final intprivate static final Componentprivate static final Component(package private) static final Componentprivate Buttonprivate static final intprivate static final intprivate final Screenprivate Stringprivate final HeaderAndFooterLayoutstatic final intprivate static final intprivate SocialInteractionsScreen.Pageprivate intprivate static final intprivate static final Componentprivate static final ResourceLocationstatic final int(package private) EditBoxprivate Component(package private) SocialInteractionsPlayerListprivate static final Componentprivate static final Componentprivate static final Componentprivate static final Componentprivate static final Componentprivate static final Componentprivate static final ComponentFields inherited from class net.minecraft.client.gui.screens.Screen
FADE_IN_TIME, font, FOOTER_SEPARATOR, HEADER_SEPARATOR, height, INWORLD_FOOTER_SEPARATOR, INWORLD_HEADER_SEPARATOR, MENU_BACKGROUND, minecraft, narratorButton, renderables, screenExecutor, title, widthFields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadded()private voidcheckSearchStringUpdate(String p_100789_) protected voidinit()booleanbooleankeyPressed(int pKeyCode, int pScanCode, int pModifiers) Called when a keyboard key is pressed within the GUI element.private intlistEnd()private intmarginX()voidonAddPlayer(PlayerInfo pPlayerInfo) voidonClose()voidonRemovePlayer(UUID pId) voidrender(GuiGraphics pGuiGraphics, int pMouseX, int pMouseY, float pPartialTick) Renders the graphical user interface (GUI) element.voidrenderBackground(GuiGraphics pGuiGraphics, int pMouseX, int pMouseY, float pPartialTick) protected voidprotected voidprivate voidprivate voidupdateServerLabel(Minecraft pMinecraft) private intMethods inherited from class net.minecraft.client.gui.screens.Screen
addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearFocus, clearWidgets, clickCommandAction, clickUrlAction, defaultHandleClickEvent, defaultHandleGameClickEvent, fadeWidgets, fillCrashDetails, findNarratableWidget, getBackgroundMusic, getFont, getMinecraft, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleClickEvent, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, onFilesDrop, rebuildWidgets, removed, removeWidget, renderBlurredBackground, renderMenuBackground, renderMenuBackground, renderMenuBackgroundTexture, renderPanorama, renderTransparentBackground, renderWithTooltip, resize, setInitialFocus, shouldCloseOnEsc, shouldNarrateNavigation, showsActiveEffects, tick, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, updateNarratorStatusMethods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocusedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandler
charTyped, getChildAt, getCurrentFocusPath, isFocused, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, nextFocusPath, setFocusedMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
getBorderForArrowNavigation, mouseMovedMethods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Field Details
-
TITLE
-
BACKGROUND_SPRITE
-
SEARCH_SPRITE
-
TAB_ALL
-
TAB_HIDDEN
-
TAB_BLOCKED
-
TAB_ALL_SELECTED
-
TAB_HIDDEN_SELECTED
-
TAB_BLOCKED_SELECTED
-
SEARCH_HINT
-
EMPTY_SEARCH
-
EMPTY_HIDDEN
-
EMPTY_BLOCKED
-
BLOCKING_HINT
-
BG_BORDER_SIZE
private static final int BG_BORDER_SIZE- See Also:
-
BG_WIDTH
private static final int BG_WIDTH- See Also:
-
SEARCH_HEIGHT
private static final int SEARCH_HEIGHT- See Also:
-
MARGIN_Y
private static final int MARGIN_Y- See Also:
-
SEARCH_START
public static final int SEARCH_START- See Also:
-
LIST_START
public static final int LIST_START- See Also:
-
IMAGE_WIDTH
private static final int IMAGE_WIDTH- See Also:
-
BUTTON_HEIGHT
private static final int BUTTON_HEIGHT- See Also:
-
ITEM_HEIGHT
private static final int ITEM_HEIGHT- See Also:
-
layout
-
lastScreen
-
searchBox
EditBox searchBox -
lastSearch
-
page
-
allButton
-
blockedButton
-
blockingHintButton
-
serverLabel
-
playerCount
private int playerCount
-
-
Constructor Details
-
SocialInteractionsScreen
public SocialInteractionsScreen() -
SocialInteractionsScreen
-
-
Method Details
-
windowHeight
private int windowHeight() -
listEnd
private int listEnd() -
marginX
private int marginX() -
getNarrationMessage
- Overrides:
getNarrationMessagein classScreen
-
init
protected void init() -
added
public void added() -
repositionElements
protected void repositionElements()- Overrides:
repositionElementsin classScreen
-
setInitialFocus
protected void setInitialFocus()- Overrides:
setInitialFocusin classScreen
-
onClose
public void onClose() -
showPage
-
renderBackground
public void renderBackground(GuiGraphics pGuiGraphics, int pMouseX, int pMouseY, float pPartialTick) - Overrides:
renderBackgroundin classScreen
-
render
Renders the graphical user interface (GUI) element.- Specified by:
renderin interfaceRenderable- Overrides:
renderin classScreen- Parameters:
pGuiGraphics- the GuiGraphics object used for rendering.pMouseX- the x-coordinate of the mouse cursor.pMouseY- the y-coordinate of the mouse cursor.pPartialTick- the partial tick time.
-
keyPressed
public boolean keyPressed(int pKeyCode, int pScanCode, int pModifiers) Called when a keyboard key is pressed within the GUI element.- Specified by:
keyPressedin interfaceContainerEventHandler- Specified by:
keyPressedin interfaceGuiEventListener- Overrides:
keyPressedin classScreen- Parameters:
pKeyCode- the key code of the pressed key.pScanCode- the scan code of the pressed key.pModifiers- the keyboard modifiers.- Returns:
trueif the event is consumed,falseotherwise.
-
isPauseScreen
public boolean isPauseScreen()- Overrides:
isPauseScreenin classScreen
-
checkSearchStringUpdate
-
updateServerLabel
-
onAddPlayer
-
onRemovePlayer
-
socialInteractionsPlayerList