net.minecraft.client.gui.friend.widget

class FriendsTabHeaderWidget

extends ContainerWidget

All mapped superinterfaces:

Widget, Drawable, Element, Navigable, Selectable, Narratable, ParentElement

net.minecraft.client.gui.screens.friends.AddFriendWidget
net.minecraft.client.gui.screens.friends.AddFriendWidget
net.minecraft.class_1_964
net.minecraft.client.gui.friend.widget.FriendsTabHeaderWidget

Field summary

Modifier and TypeField
private static final ButtonTextures
ADD_SPRITE
ADD_SPRITE
field_1_6669
DRAFT_REPORT_BUTTON_TEXTURES
private static final Identifier
LIST_SEPARATOR_TOP
LIST_SEPARATOR_TOP
field_1_6674
LIST_SEPARATOR_TOP_TEXTURE
private static final Text
ENTER_NICKNAME
ENTER_NICKNAME
field_1_6672
ENTER_NICKNAME_TEXT
private static final Text
SEND_REQUEST
SEND_REQUEST
field_1_6678
SEND_REQUEST_TEXT
private static final Text
EMPTY_NICKNAME_MESSAGE
EMPTY_NICKNAME_MESSAGE
field_1_6671
EMPTY_NICKNAME_TEXT
private static final Text
COPY_TO_CLIPBOARD
COPY_TO_CLIPBOARD
field_1_6670
COPY_TO_CLIPBOARD_TEXT
private static final Text
PROFILE_NAME_LABEL
PROFILE_NAME_LABEL
field_1_6676
MY_PROFILE_NAME_TEXT
private static final int
WINDOW_MARGIN
WINDOW_MARGIN
field_1_6681
field_1_6681
private static final int
SEPARATOR_HEIGHT
SEPARATOR_HEIGHT
field_1_6679
field_1_6679
private static final int
INPUT_SPACING
INPUT_SPACING
field_1_6673
field_1_6673
private static final int
ADD_BUTTON_SIZE
ADD_BUTTON_SIZE
field_1_6668
field_1_6668
private static final int
SEPARATOR_PADDING
SEPARATOR_PADDING
field_1_6680
field_1_6680
private static final int
PROFILE_NAME_HEIGHT
PROFILE_NAME_HEIGHT
field_1_6675
field_1_6675
private static final int
PROFILE_NAME_MARGIN
PROFILE_NAME_MARGIN
field_1_6677
field_1_6677
private final TextFieldWidget
editBox
editBox
field_1_6683
searchField
private final TextIconButtonWidget
addButton
addButton
field_1_6682
sendRequestButton
private final PressableTextWidget
profileNameButton
profileNameButton
field_1_6686
profileNameText
private final MinecraftClient
minecraft
minecraft
field_1_6685
client
private final DirectionalLayoutWidget
layout
layout
field_1_6684
main

Constructor summary

ModifierConstructor
(int width, Runnable onSendRequest)

Method summary

Modifier and TypeMethod
private DirectionalLayoutWidget
createProfileRow()
createProfileRow()
method_1_6316()
createProfileNameWidget()
private void
editBoxResponder(String value)
editBoxResponder(String value)
method_1_5813(String arg0)
onSearchFieldChanged(String value)
private Text
getInvalidInputReason(String name)
getInvalidInputReason(String name)
method_1_6365(String arg0)
getFriendRequestErrorText(String username)
private static boolean
contains(List<PlayerSocialManager$PlayerData> players, String playerName)
contains(List<PlayerSocialManager$PlayerData> players, String playerName)
method_1_6364(List<class_5520$class_1_980> arg0, String arg1)
playerListContainsUsername(List<SocialInteractionsManager$Player> players, String username)
public void
applyState(AddFriendWidget$State newState)
applyState(AddFriendWidget$State newState)
method_1_5812(class_1_964$class_1_965 arg0)
setState(FriendsTabHeaderWidget$State state)
public TextFieldWidget
getEditBox()
getEditBox()
method_1_5814()
getSearchField()
public String
getValue()
getValue()
method_1_5815()
getSearchText()
public void
setValue(String value)
setValue(String value)
method_1_5822(String arg0)
setSearchText(String searchText)
protected int
contentHeight()
contentHeight()
method_44395()
getContentsHeightWithPadding()
public void
setX(int x)
setX(int x)
method_46421(int arg0)
setX(int arg0)
public void
setY(int y)
setY(int y)
method_46419(int arg0)
setY(int arg0)
protected void
extractWidgetRenderState(GuiGraphicsExtractor graphics, int mouseX, int mouseY, float a)
extractWidgetRenderState(GuiGraphicsExtractor graphics, int mouseX, int mouseY, float a)
method_48579(class_332 arg0, int arg1, int arg2, float arg3)
renderWidget(DrawContext arg0, int arg1, int arg2, float arg3)
protected void
updateWidgetNarration(NarrationElementOutput output)
updateWidgetNarration(NarrationElementOutput output)
method_47399(class_6382 arg0)
appendClickableNarrations(NarrationMessageBuilder arg0)
public Collection<? extends Selectable>
getNarratables()
getNarratables()
method_65516()
getNarratedParts()
public List<? extends Element>
children()
children()
method_25396()
children()