Class FriendsButton
java.lang.Object
net.minecraft.client.gui.components.AbstractWidget
net.minecraft.client.gui.components.AbstractWidget.WithInactiveMessage
net.minecraft.client.gui.components.AbstractButton
net.minecraft.client.gui.components.Button
net.minecraft.client.gui.components.SpriteIconButton
net.minecraft.client.gui.components.SpriteIconButton.CenteredIcon
net.minecraft.client.gui.components.FriendsButton
- All Implemented Interfaces:
GuiEventListener, Renderable, TabOrderedElement, LayoutElement, NarratableEntry, NarrationSupplier
-
Nested Class Summary
Nested classes/interfaces inherited from class SpriteIconButton
SpriteIconButton.Builder, SpriteIconButton.CenteredIcon, SpriteIconButton.TextAndIconNested classes/interfaces inherited from class Button
Button.CreateNarration, Button.OnPress, Button.PlainNested classes/interfaces inherited from class AbstractWidget
AbstractWidget.WithInactiveMessageNested classes/interfaces inherited from interface NarratableEntry
NarratableEntry.NarrationPriority -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate static final Componentprivate static final Button.CreateNarrationprivate static final Identifier[]private static final intprivate static final ComponentFields inherited from class SpriteIconButton
sprite, spriteHeight, spriteOffsetX, spriteOffsetY, spriteWidthFields inherited from class Button
BIG_WIDTH, createNarration, DEFAULT_HEIGHT, DEFAULT_NARRATION, DEFAULT_SPACING, DEFAULT_WIDTH, onPress, SMALL_WIDTHFields inherited from class AbstractButton
SPRITES, TEXT_MARGINFields inherited from class AbstractWidget
active, alpha, height, isHovered, message, packedFGColor, UNSET_FG_COLOR, visible, width -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidextractContents(GuiGraphicsExtractor graphics, int mouseX, int mouseY, float a) voidMethods inherited from class SpriteIconButton
builder, extractLoadingStateIfLoading, extractSprite, isActive, onPress, setLoading, setLoadingMethods inherited from class Button
builder, createNarrationMessage, updateWidgetNarrationMethods inherited from class AbstractButton
extractDefaultLabel, extractDefaultSprite, extractWidgetRenderState, keyPressed, onClick, setOverrideRenderHighlightedSpriteMethods inherited from class AbstractWidget.WithInactiveMessage
defaultInactiveMessage, getMessage, setMessageMethods inherited from class AbstractWidget
clearFGColor, defaultButtonNarrationText, extractRenderState, extractScrollingStringOverContents, extractTooltipForNextRenderPass, getAlpha, getBottom, getFGColor, getHeight, getRectangle, getRight, getTabOrderGroup, getWidth, getX, getY, handleCursor, isFocused, isHovered, isHoveredOrFocused, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrationPriority, nextFocusPath, onDrag, onRelease, playButtonClickSound, playDownSound, setAlpha, setFGColor, setFocused, setHeight, 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 GuiEventListener
charTyped, getBorderForArrowNavigation, getCurrentFocusPath, keyReleased, mouseMoved, mouseScrolled, preeditUpdated, shouldTakeFocusAfterInteractionMethods inherited from interface LayoutElement
setPositionMethods inherited from interface NarratableEntry
getNarratables
-
Field Details
-
TOOLTIP
-
MESSAGE
-
NARRATION
-
NOTIFICATION_ICONS
-
SPRITE_SIZE
private static final int SPRITE_SIZE- See Also:
-
incomingRequestCount
private int incomingRequestCount
-
-
Constructor Details
-
FriendsButton
-
-
Method Details
-
refreshIncomingRequestCount
public void refreshIncomingRequestCount() -
extractContents
- Overrides:
extractContentsin classSpriteIconButton.CenteredIcon
-