类 RealmsWorldSlotButton
java.lang.Object
net.minecraft.client.gui.components.AbstractWidget
net.minecraft.client.gui.components.AbstractButton
net.minecraft.client.gui.components.Button
com.mojang.realmsclient.gui.RealmsWorldSlotButton
- 所有已实现的接口:
GuiEventListener
,Renderable
,TabOrderedElement
,LayoutElement
,NarratableEntry
,NarrationSupplier
-
嵌套类概要
嵌套类从类继承的嵌套类/接口 net.minecraft.client.gui.components.Button
Button.Builder, Button.CreateNarration, Button.OnPress
从接口继承的嵌套类/接口 net.minecraft.client.gui.narration.NarratableEntry
NarratableEntry.NarrationPriority
-
字段概要
字段修饰符和类型字段说明private static final ResourceLocation
static final ResourceLocation
static final ResourceLocation
static final ResourceLocation
private static final String
static final ResourceLocation
(专用程序包) static final Component
private static final Component
private static final ResourceLocation
private final int
private RealmsWorldSlotButton.State
private static final Component
private static final Component
private static final int
从类继承的字段 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
-
构造器概要
构造器构造器说明RealmsWorldSlotButton
(int p_87929_, int p_87930_, int p_87931_, int p_87932_, int p_87935_, Button.OnPress p_87936_) -
方法概要
修饰符和类型方法说明(专用程序包) static RealmsWorldSlotButton.Action
getAction
(RealmsServer p_87960_, boolean p_87961_, boolean p_87962_) getState()
void
renderWidget
(GuiGraphics p_282947_, int p_87965_, int p_87966_, float p_87967_) void
setServerData
(RealmsServer p_310623_) private void
setTooltipAndNarration
(RealmsWorldSlotButton.State p_312604_, String p_310582_) 从类继承的方法 net.minecraft.client.gui.components.Button
builder, createNarrationMessage, onPress, updateWidgetNarration
从类继承的方法 net.minecraft.client.gui.components.AbstractButton
keyPressed, onClick, renderString
从类继承的方法 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
-
字段详细资料
-
SLOT_FRAME_SPRITE
-
CHECKMARK_SPRITE
-
EMPTY_SLOT_LOCATION
-
DEFAULT_WORLD_SLOT_1
-
DEFAULT_WORLD_SLOT_2
-
DEFAULT_WORLD_SLOT_3
-
SLOT_ACTIVE_TOOLTIP
-
SWITCH_TO_MINIGAME_SLOT_TOOLTIP
-
SWITCH_TO_WORLD_SLOT_TOOLTIP
-
MINIGAME
-
WORLD_NAME_MAX_WIDTH
private static final int WORLD_NAME_MAX_WIDTH- 另请参阅:
-
DOTS
- 另请参阅:
-
slotIndex
private final int slotIndex -
state
-
-
构造器详细资料
-
RealmsWorldSlotButton
public RealmsWorldSlotButton(int p_87929_, int p_87930_, int p_87931_, int p_87932_, int p_87935_, Button.OnPress p_87936_)
-
-
方法详细资料
-
getState
-
setServerData
-
setTooltipAndNarration
private void setTooltipAndNarration(RealmsWorldSlotButton.State p_312604_, @Nullable String p_310582_) -
getAction
static RealmsWorldSlotButton.Action getAction(RealmsServer p_87960_, boolean p_87961_, boolean p_87962_) -
renderWidget
- 覆盖:
renderWidget
在类中AbstractButton
-