类 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
- 所有已实现的接口:
GuiEventListener
,Renderable
,TabOrderedElement
,LayoutElement
,NarratableEntry
,NarrationSupplier
- 封闭类:
RealmsMainScreen
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraft.client.gui.components.SpriteIconButton
SpriteIconButton.Builder, SpriteIconButton.CenteredIcon, SpriteIconButton.TextAndIcon
从类继承的嵌套类/接口 net.minecraft.client.gui.components.Button
Button.CreateNarration, Button.OnPress
从接口继承的嵌套类/接口 net.minecraft.client.gui.narration.NarratableEntry
NarratableEntry.NarrationPriority
-
字段概要
字段修饰符和类型字段说明private static final ResourceLocation[]
private int
private static final int
private static final int
private static final int
从类继承的字段 net.minecraft.client.gui.components.SpriteIconButton
sprite, spriteHeight, spriteWidth
从类继承的字段 net.minecraft.client.gui.components.Button
BIG_WIDTH, createNarration, DEFAULT_HEIGHT, DEFAULT_NARRATION, DEFAULT_SPACING, DEFAULT_WIDTH, onPress, SMALL_WIDTH
从类继承的字段 net.minecraft.client.gui.components.AbstractButton
SPRITES, TEXT_MARGIN
从类继承的字段 net.minecraft.client.gui.components.AbstractWidget
active, alpha, height, isHovered, packedFGColor, UNSET_FG_COLOR, visible, width
从接口继承的字段 net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
构造器概要
构造器构造器说明NotificationButton
(Component p_299660_, ResourceLocation p_298832_, Button.OnPress p_297337_) -
方法概要
修饰符和类型方法说明private void
drawNotificationCounter
(GuiGraphics p_301365_) (专用程序包) int
void
renderWidget
(GuiGraphics p_301337_, int p_300699_, int p_300272_, float p_300587_) void
setNotificationCount
(int p_300462_) 从类继承的方法 net.minecraft.client.gui.components.SpriteIconButton.CenteredIcon
renderString
从类继承的方法 net.minecraft.client.gui.components.SpriteIconButton
builder
从类继承的方法 net.minecraft.client.gui.components.Button
builder, createNarrationMessage, onPress, updateWidgetNarration
从类继承的方法 net.minecraft.client.gui.components.AbstractButton
keyPressed, onClick
从类继承的方法 net.minecraft.client.gui.components.AbstractWidget
clearFGColor, 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, playButtonClickSound, playDownSound, render, renderScrollingString, renderScrollingString, renderScrollingString, setAlpha, setFGColor, setFocused, setHeight, setMessage, setRectangle, setSize, setTabOrderGroup, setTooltip, setTooltipDelay, setWidth, setX, setY, updateNarration, visitWidgets, wrapDefaultNarrationMessage
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.client.gui.components.events.GuiEventListener
charTyped, getBorderForArrowNavigation, getCurrentFocusPath, keyReleased, mouseMoved, mouseScrolled
从接口继承的方法 net.minecraft.client.gui.layouts.LayoutElement
setPosition
从接口继承的方法 net.minecraft.client.gui.narration.NarratableEntry
getNarratables
-
字段详细资料
-
NOTIFICATION_ICONS
-
UNKNOWN_COUNT
private static final int UNKNOWN_COUNT- 另请参阅:
-
SIZE
private static final int SIZE- 另请参阅:
-
SPRITE_SIZE
private static final int SPRITE_SIZE- 另请参阅:
-
notificationCount
private int notificationCount
-
-
构造器详细资料
-
NotificationButton
public NotificationButton(Component p_299660_, ResourceLocation p_298832_, Button.OnPress p_297337_)
-
-
方法详细资料
-
notificationCount
int notificationCount() -
setNotificationCount
public void setNotificationCount(int p_300462_) -
renderWidget
-
drawNotificationCounter
-