Class AbstractFriendsEntryContainerWidget
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.AbstractFriendsEntryContainerWidget
- All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement, LayoutElement, NarratableEntry, NarrationSupplier
- Direct Known Subclasses:
FriendEntry, IncomingEntry, OutgoingEntry
-
Nested Class Summary
Nested 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 int(package private) static final intprivate final List<AbstractWidget> (package private) static final intprotected final Minecraftprotected final StringWidget(package private) static final intprotected final PlayerFaceWidgetprotected final UUIDprotected final Stringprotected final FriendsOverlayScreenprotected final boolean(package private) 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
ConstructorsConstructorDescriptionAbstractFriendsEntryContainerWidget(Minecraft minecraft, FriendsOverlayScreen screen, int x, int y, int width, int height, PlayerSocialManager.PlayerData playerData) AbstractFriendsEntryContainerWidget(Minecraft minecraft, FriendsOverlayScreen screen, int x, int y, int width, int height, PlayerSocialManager.PlayerData playerData, boolean showingStatus) -
Method Summary
Modifier and TypeMethodDescriptionprotected final voidaddChild(AbstractWidget child) List<? extends GuiEventListener> children()protected int(package private) abstract voiddisable()protected voidextractWidgetRenderState(GuiGraphicsExtractor graphics, int mouseX, int mouseY, float a) protected abstract ComponentCollection<? extends NarratableEntry> (package private) static Button.CreateNarrationgetSpriteIconNarration(Component actionDescription) (package private) UUIDplayerId()protected final voidremoveChild(AbstractWidget child) 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, setX, setY, 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
-
SPRITE_TEXTURE_SIZE
static final int SPRITE_TEXTURE_SIZE- See Also:
-
BUTTON_SIZE
static final int BUTTON_SIZE- See Also:
-
FACE_SIZE
static final int FACE_SIZE- See Also:
-
PADDING
static final int PADDING- See Also:
-
BACKGROUND_MARGIN
private static final int BACKGROUND_MARGIN- See Also:
-
minecraft
-
screen
-
playerFaceWidget
-
nameWidget
-
playerName
-
playerId
-
showingStatus
protected final boolean showingStatus -
children
-
-
Constructor Details
-
AbstractFriendsEntryContainerWidget
public AbstractFriendsEntryContainerWidget(Minecraft minecraft, FriendsOverlayScreen screen, int x, int y, int width, int height, PlayerSocialManager.PlayerData playerData) -
AbstractFriendsEntryContainerWidget
public AbstractFriendsEntryContainerWidget(Minecraft minecraft, FriendsOverlayScreen screen, int x, int y, int width, int height, PlayerSocialManager.PlayerData playerData, boolean showingStatus)
-
-
Method Details
-
disable
abstract void disable() -
playerId
UUID playerId() -
getEntryNarration
-
getSpriteIconNarration
-
updateWidgetNarration
- Specified by:
updateWidgetNarrationin classAbstractWidget
-
getNarratables
-
addChild
-
removeChild
-
children
-
contentHeight
protected int contentHeight()- Specified by:
contentHeightin classAbstractScrollArea
-
extractWidgetRenderState
protected void extractWidgetRenderState(GuiGraphicsExtractor graphics, int mouseX, int mouseY, float a) - Specified by:
extractWidgetRenderStatein classAbstractWidget
-