Class AddFriendWidget
java.lang.Object
net.minecraft.client.gui.components.AbstractWidget
net.minecraft.client.gui.components.AbstractScrollArea
net.minecraft.client.gui.components.AbstractContainerWidget
net.minecraft.client.gui.screens.friends.AddFriendWidget
- All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement, LayoutElement, NarratableEntry, NarrationSupplier
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class AbstractScrollArea
AbstractScrollArea.ScrollbarSettingsNested classes/interfaces inherited from class AbstractWidget
AbstractWidget.WithInactiveMessageNested classes/interfaces inherited from interface NarratableEntry
NarratableEntry.NarrationPriority -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final WidgetSpritesprivate final SpriteIconButtonprivate static final Componentprivate final EditBoxprivate static final Componentprivate static final Componentprivate static final intprivate final LinearLayoutprivate static final Identifierprivate final Minecraftprivate static final intprivate static final Componentprivate static final intprivate final PlainTextButtonprivate static final Componentprivate static final intprivate static final intprivate static final intFields inherited from class AbstractScrollArea
SCROLLBAR_WIDTHFields inherited from class AbstractWidget
active, alpha, height, isHovered, message, packedFGColor, UNSET_FG_COLOR, visible, width -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyState(AddFriendWidget.State newState) List<? extends GuiEventListener> children()private static booleancontains(List<PlayerSocialManager.PlayerData> players, String playerName) protected intprivate LinearLayoutprivate voideditBoxResponder(String value) protected voidextractWidgetRenderState(GuiGraphicsExtractor graphics, int mouseX, int mouseY, float a) getInvalidInputReason(String name) Collection<? extends NarratableEntry> getValue()voidvoidsetX(int x) voidsetY(int y) protected voidMethods inherited from class AbstractContainerWidget
getFocused, isDragging, isFocused, mouseClicked, mouseDragged, mouseReleased, nextFocusPath, setDragging, setFocused, setFocusedMethods inherited from class AbstractScrollArea
defaultSettings, extractScrollbar, isOverScrollbar, maxScrollAmount, mouseScrolled, onRelease, refreshScrollAmount, scrollable, scrollAmount, scrollbarWidth, scrollBarX, scrollBarY, scrollerHeight, scrollRate, setScrollAmount, updateScrollingMethods inherited from class AbstractWidget
clearFGColor, createNarrationMessage, defaultButtonNarrationText, extractRenderState, extractScrollingStringOverContents, extractTooltipForNextRenderPass, getAlpha, getBottom, getFGColor, getHeight, getMessage, getRectangle, getRight, getTabOrderGroup, getWidth, getX, getY, handleCursor, isActive, isHovered, isHoveredOrFocused, isMouseOver, isValidClickButton, narrationPriority, onClick, onDrag, playButtonClickSound, playDownSound, setAlpha, setFGColor, setHeight, setMessage, setRectangle, setSize, setTabOrderGroup, setTooltip, setTooltipDelay, setWidth, updateNarration, visitWidgets, wrapDefaultNarrationMessageMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ContainerEventHandler
charTyped, getBorderForArrowNavigation, getChildAt, getCurrentFocusPath, keyPressed, keyReleased, mouseScrolled, preeditUpdatedMethods inherited from interface GuiEventListener
getRectangle, isMouseOver, mouseMoved, shouldTakeFocusAfterInteractionMethods inherited from interface LayoutElement
setPositionMethods inherited from interface TabOrderedElement
getTabOrderGroup
-
Field Details
-
ADD_SPRITE
-
LIST_SEPARATOR_TOP
-
ENTER_NICKNAME
-
SEND_REQUEST
-
EMPTY_NICKNAME_MESSAGE
-
COPY_TO_CLIPBOARD
-
PROFILE_NAME_LABEL
-
WINDOW_MARGIN
private static final int WINDOW_MARGIN- See Also:
-
SEPARATOR_HEIGHT
private static final int SEPARATOR_HEIGHT- See Also:
-
INPUT_SPACING
private static final int INPUT_SPACING- See Also:
-
ADD_BUTTON_SIZE
private static final int ADD_BUTTON_SIZE- See Also:
-
SEPARATOR_PADDING
private static final int SEPARATOR_PADDING- See Also:
-
PROFILE_NAME_HEIGHT
private static final int PROFILE_NAME_HEIGHT- See Also:
-
PROFILE_NAME_MARGIN
private static final int PROFILE_NAME_MARGIN- See Also:
-
editBox
-
addButton
-
profileNameButton
-
minecraft
-
layout
-
-
Constructor Details
-
AddFriendWidget
AddFriendWidget(int width, Runnable afterSend)
-
-
Method Details
-
createProfileRow
-
editBoxResponder
-
getInvalidInputReason
-
contains
-
applyState
-
getEditBox
-
getValue
-
setValue
-
contentHeight
protected int contentHeight()- Specified by:
contentHeightin classAbstractScrollArea
-
setX
public void setX(int x) - Specified by:
setXin interfaceLayoutElement- Overrides:
setXin classAbstractWidget
-
setY
public void setY(int y) - Specified by:
setYin interfaceLayoutElement- Overrides:
setYin classAbstractWidget
-
extractWidgetRenderState
protected void extractWidgetRenderState(GuiGraphicsExtractor graphics, int mouseX, int mouseY, float a) - Specified by:
extractWidgetRenderStatein classAbstractWidget
-
updateWidgetNarration
- Specified by:
updateWidgetNarrationin classAbstractWidget
-
getNarratables
-
children
-