Package com.mojang.realmsclient
Class RealmsMainScreen.NotificationButton
java.lang.Object
net.minecraft.client.gui.components.AbstractWidget
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
com.mojang.realmsclient.RealmsMainScreen.NotificationButton
- All Implemented Interfaces:
GuiEventListener,Renderable,TabOrderedElement,LayoutElement,NarratableEntry,NarrationSupplier,IAbstractWidgetExtension
- Enclosing class:
RealmsMainScreen
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.components.SpriteIconButton
SpriteIconButton.Builder, SpriteIconButton.CenteredIcon, SpriteIconButton.TextAndIconNested classes/interfaces inherited from class net.minecraft.client.gui.components.Button
Button.CreateNarration, Button.OnPressNested classes/interfaces inherited from interface net.minecraft.client.gui.narration.NarratableEntry
NarratableEntry.NarrationPriority -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final ResourceLocation[]private intprivate static final intprivate static final intprivate static final intFields inherited from class net.minecraft.client.gui.components.SpriteIconButton
sprite, spriteHeight, spriteWidthFields inherited from class net.minecraft.client.gui.components.Button
BIG_WIDTH, createNarration, DEFAULT_HEIGHT, DEFAULT_NARRATION, DEFAULT_SPACING, DEFAULT_WIDTH, onPress, SMALL_WIDTHFields inherited from class net.minecraft.client.gui.components.AbstractButton
SPRITES, TEXT_MARGINFields inherited from class net.minecraft.client.gui.components.AbstractWidget
active, alpha, height, isHovered, packedFGColor, UNSET_FG_COLOR, visible, widthFields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS -
Constructor Summary
ConstructorsConstructorDescriptionNotificationButton(Component message, ResourceLocation sprite, Button.OnPress onPress) -
Method Summary
Modifier and TypeMethodDescriptionprivate voiddrawNotificationCounter(GuiGraphics guiGraphics) (package private) intvoidrenderWidget(GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick) voidsetNotificationCount(int notificationCount) Methods inherited from class net.minecraft.client.gui.components.SpriteIconButton.CenteredIcon
renderStringMethods inherited from class net.minecraft.client.gui.components.SpriteIconButton
builderMethods inherited from class net.minecraft.client.gui.components.Button
builder, createNarrationMessage, onPress, updateWidgetNarrationMethods inherited from class net.minecraft.client.gui.components.AbstractButton
keyPressed, onClickMethods inherited from class net.minecraft.client.gui.components.AbstractWidget
clearFGColor, clicked, defaultButtonNarrationText, getBottom, getFGColor, getHeight, getMessage, getRectangle, getRight, getTabOrderGroup, getTooltip, getWidth, getX, getY, isActive, isFocused, isHovered, isHoveredOrFocused, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrationPriority, nextFocusPath, onDrag, onRelease, playDownSound, render, renderScrollingString, renderScrollingString, renderScrollingString, setAlpha, setFGColor, setFocused, setHeight, setMessage, setRectangle, setSize, setTabOrderGroup, setTooltip, setTooltipDelay, setWidth, setX, setY, updateNarration, visitWidgets, wrapDefaultNarrationMessageMethods 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.GuiEventListener
charTyped, getCurrentFocusPath, keyReleased, mouseMoved, mouseScrolledMethods inherited from interface net.neoforged.neoforge.client.extensions.IAbstractWidgetExtension
onClickMethods inherited from interface net.minecraft.client.gui.layouts.LayoutElement
setPosition
-
Field Details
-
NOTIFICATION_ICONS
-
UNKNOWN_COUNT
private static final int UNKNOWN_COUNT- See Also:
-
SIZE
private static final int SIZE- See Also:
-
SPRITE_SIZE
private static final int SPRITE_SIZE- See Also:
-
notificationCount
private int notificationCount
-
-
Constructor Details
-
NotificationButton
-
-
Method Details
-
notificationCount
int notificationCount() -
setNotificationCount
public void setNotificationCount(int notificationCount) -
renderWidget
- Overrides:
renderWidgetin classSpriteIconButton.CenteredIcon
-
drawNotificationCounter
-