Package com.mojang.realmsclient.gui
Class 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
- All Implemented Interfaces:
- GuiEventListener,- Renderable,- TabOrderedElement,- LayoutElement,- NarratableEntry,- NarrationSupplier
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic enumstatic classNested classes/interfaces inherited from class net.minecraft.client.gui.components.ButtonButton.Builder, Button.CreateNarration, Button.OnPressNested classes/interfaces inherited from interface net.minecraft.client.gui.narration.NarratableEntryNarratableEntry.NarrationPriority
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final ResourceLocationstatic final ResourceLocationstatic final ResourceLocationstatic final ResourceLocationstatic final ResourceLocationprivate static final Componentprivate final Supplier<RealmsServer>private static final Componentprivate static final ResourceLocationprivate final intprivate RealmsWorldSlotButton.Stateprivate static final Componentprivate static final ComponentFields inherited from class net.minecraft.client.gui.components.ButtoncreateNarration, DEFAULT_HEIGHT, DEFAULT_NARRATION, DEFAULT_WIDTH, onPress, SMALL_WIDTHFields inherited from class net.minecraft.client.gui.components.AbstractButtonSPRITES, TEXT_MARGINFields inherited from class net.minecraft.client.gui.components.AbstractWidgetactive, alpha, height, isHovered, packedFGColor, UNSET_FG_COLOR, visible, widthFields inherited from interface net.minecraft.client.gui.components.events.GuiEventListenerDOUBLE_CLICK_THRESHOLD_MS
- 
Constructor SummaryConstructorsConstructorDescriptionRealmsWorldSlotButton(int p_87929_, int p_87930_, int p_87931_, int p_87932_, Supplier<RealmsServer> p_87933_, Consumer<Component> p_87934_, int p_87935_, Button.OnPress p_87936_) 
- 
Method SummaryModifier and TypeMethodDescriptionprivate voiddrawSlotFrame(GuiGraphics p_282493_, int p_282407_, int p_283212_, int p_283646_, int p_283633_, boolean p_282019_, String p_283553_, int p_283521_, long p_281546_, String p_283361_, boolean p_283516_, boolean p_281611_, RealmsWorldSlotButton.Action p_281804_, Component p_282910_) private static RealmsWorldSlotButton.ActiongetAction(RealmsServer p_87960_, boolean p_87961_, boolean p_87962_) getState()getTooltipAndNarration(RealmsServer p_87954_, String p_87955_, boolean p_87956_, boolean p_87957_, RealmsWorldSlotButton.Action p_87958_) private voidrenderCheckMark(GuiGraphics p_281366_, int p_281849_, int p_283407_) voidrenderWidget(GuiGraphics p_282947_, int p_87965_, int p_87966_, float p_87967_) voidtick()Methods inherited from class net.minecraft.client.gui.components.Buttonbuilder, createNarrationMessage, onPress, updateWidgetNarrationMethods inherited from class net.minecraft.client.gui.components.AbstractButtonkeyPressed, onClick, renderStringMethods inherited from class net.minecraft.client.gui.components.AbstractWidgetclearFGColor, clicked, createTooltipPositioner, defaultButtonNarrationText, getFGColor, getHeight, getMessage, getRectangle, 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, setTabOrderGroup, setTooltip, setTooltipDelay, setWidth, setX, setY, updateNarration, visitWidgets, wrapDefaultNarrationMessageMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListenercharTyped, getCurrentFocusPath, keyReleased, mouseMoved, mouseScrolledMethods inherited from interface net.minecraft.client.gui.layouts.LayoutElementsetPosition
- 
Field Details- 
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
- 
serverDataProvider
- 
toolTipSetter
- 
slotIndexprivate final int slotIndex
- 
state
 
- 
- 
Constructor Details- 
RealmsWorldSlotButtonpublic RealmsWorldSlotButton(int p_87929_, int p_87930_, int p_87931_, int p_87932_, Supplier<RealmsServer> p_87933_, Consumer<Component> p_87934_, int p_87935_, Button.OnPress p_87936_) 
 
- 
- 
Method Details- 
getState
- 
tickpublic void tick()
- 
getActionprivate static RealmsWorldSlotButton.Action getAction(RealmsServer p_87960_, boolean p_87961_, boolean p_87962_) 
- 
getTooltipAndNarrationprivate com.mojang.datafixers.util.Pair<Component,Component> getTooltipAndNarration(RealmsServer p_87954_, String p_87955_, boolean p_87956_, boolean p_87957_, RealmsWorldSlotButton.Action p_87958_) 
- 
renderWidget- Overrides:
- renderWidgetin class- AbstractButton
 
- 
drawSlotFrameprivate void drawSlotFrame(GuiGraphics p_282493_, int p_282407_, int p_283212_, int p_283646_, int p_283633_, boolean p_282019_, String p_283553_, int p_283521_, long p_281546_, @Nullable String p_283361_, boolean p_283516_, boolean p_281611_, RealmsWorldSlotButton.Action p_281804_, @Nullable Component p_282910_) 
- 
renderCheckMark
 
-