Package net.minecraft.client.realms.gui
Class RealmsWorldSlotButton
java.lang.Object
net.minecraft.client.gui.widget.ClickableWidget
net.minecraft.client.gui.widget.PressableWidget
net.minecraft.client.gui.widget.ButtonWidget
net.minecraft.client.realms.gui.RealmsWorldSlotButton
- All Implemented Interfaces:
- Drawable,- Element,- Narratable,- Navigable,- Selectable,- Widget
- Mappings:
- Namespace - Name - named - net/minecraft/client/realms/gui/RealmsWorldSlotButton- intermediary - net/minecraft/class_4367- official - fin
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic enumstatic classNested classes/interfaces inherited from class net.minecraft.client.gui.widget.ButtonWidgetButtonWidget.Builder, ButtonWidget.NarrationSupplier, ButtonWidget.PressActionNested classes/interfaces inherited from interface net.minecraft.client.gui.SelectableSelectable.SelectionType
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final Textprivate static final Identifierprivate static final Stringstatic final Identifierprivate static final int(package private) static final Textprivate static final Textstatic final Identifierstatic final Identifierstatic final Identifierprivate static final Identifierprivate final intprivate @Nullable RealmsWorldSlotButton.Stateprivate static final TextFields inherited from class net.minecraft.client.gui.widget.ButtonWidgetDEFAULT_HEIGHT, DEFAULT_NARRATION_SUPPLIER, DEFAULT_WIDTH, DEFAULT_WIDTH_SMALL, field_46856, field_49479, narrationSupplier, onPressFields inherited from class net.minecraft.client.gui.widget.PressableWidgetfield_43050Fields inherited from class net.minecraft.client.gui.widget.ClickableWidgetactive, alpha, height, hovered, visible, widthFields inherited from interface net.minecraft.client.gui.ElementMAX_DOUBLE_CLICK_INTERVAL
- 
Constructor SummaryConstructorsConstructorDescriptionRealmsWorldSlotButton(int x, int y, int width, int height, int slotIndex, ButtonWidget.PressAction pressAction) 
- 
Method SummaryModifier and TypeMethodDescription(package private) static RealmsWorldSlotButton.ActiongetAction(RealmsServer server, boolean active, boolean minigame) getState()voidrenderWidget(DrawContext context, int mouseX, int mouseY, float delta) voidsetServer(RealmsServer server) private voidupdateTooltip(RealmsWorldSlotButton.State state, @Nullable String minigameName) Methods inherited from class net.minecraft.client.gui.widget.ButtonWidgetappendClickableNarrations, builder, getNarrationMessage, onPressMethods inherited from class net.minecraft.client.gui.widget.PressableWidgetdrawMessage, keyPressed, onClickMethods inherited from class net.minecraft.client.gui.widget.ClickableWidgetappendDefaultNarrations, appendNarrations, drawScrollableText, drawScrollableText, drawScrollableText, forEachChild, getBottom, getHeight, getMessage, getNarrationMessage, getNavigationFocus, getNavigationOrder, getNavigationPath, getRight, getTooltip, getType, getWidth, getX, getY, isFocused, isHovered, isMouseOver, isNarratable, isSelected, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, onDrag, onRelease, playClickSound, playDownSound, render, setAlpha, setDimensions, setDimensionsAndPosition, setFocused, setHeight, setMessage, setNavigationOrder, setTooltip, setTooltipDelay, setWidth, setX, setYMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.ElementcharTyped, getBorder, getFocusedPath, keyReleased, mouseMoved, mouseScrolledMethods inherited from interface net.minecraft.client.gui.SelectablegetNarratedPartsMethods inherited from interface net.minecraft.client.gui.widget.WidgetsetPosition
- 
Field Details- 
SLOT_FRAME- Mappings:
- Namespace - Name - Mixin selector - named - SLOT_FRAME- Lnet/minecraft/client/realms/gui/RealmsWorldSlotButton;SLOT_FRAME:Lnet/minecraft/util/Identifier;- intermediary - field_22681- Lnet/minecraft/class_4367;field_22681:Lnet/minecraft/class_2960;- official - u- Lfin;u:Lakv;
 
- 
CHECKMARK- Mappings:
- Namespace - Name - Mixin selector - named - CHECKMARK- Lnet/minecraft/client/realms/gui/RealmsWorldSlotButton;CHECKMARK:Lnet/minecraft/util/Identifier;- intermediary - field_39067- Lnet/minecraft/class_4367;field_39067:Lnet/minecraft/class_2960;- official - v- Lfin;v:Lakv;
 
- 
EMPTY_FRAME- Mappings:
- Namespace - Name - Mixin selector - named - EMPTY_FRAME- Lnet/minecraft/client/realms/gui/RealmsWorldSlotButton;EMPTY_FRAME:Lnet/minecraft/util/Identifier;- intermediary - field_22682- Lnet/minecraft/class_4367;field_22682:Lnet/minecraft/class_2960;- official - a- Lfin;a:Lakv;
 
- 
PANORAMA_0- Mappings:
- Namespace - Name - Mixin selector - named - PANORAMA_0- Lnet/minecraft/client/realms/gui/RealmsWorldSlotButton;PANORAMA_0:Lnet/minecraft/util/Identifier;- intermediary - field_22683- Lnet/minecraft/class_4367;field_22683:Lnet/minecraft/class_2960;- official - b- Lfin;b:Lakv;
 
- 
PANORAMA_2- Mappings:
- Namespace - Name - Mixin selector - named - PANORAMA_2- Lnet/minecraft/client/realms/gui/RealmsWorldSlotButton;PANORAMA_2:Lnet/minecraft/util/Identifier;- intermediary - field_22684- Lnet/minecraft/class_4367;field_22684:Lnet/minecraft/class_2960;- official - c- Lfin;c:Lakv;
 
- 
PANORAMA_3- Mappings:
- Namespace - Name - Mixin selector - named - PANORAMA_3- Lnet/minecraft/client/realms/gui/RealmsWorldSlotButton;PANORAMA_3:Lnet/minecraft/util/Identifier;- intermediary - field_22685- Lnet/minecraft/class_4367;field_22685:Lnet/minecraft/class_2960;- official - d- Lfin;d:Lakv;
 
- 
ACTIVE_TOOLTIP- Mappings:
- Namespace - Name - Mixin selector - named - ACTIVE_TOOLTIP- Lnet/minecraft/client/realms/gui/RealmsWorldSlotButton;ACTIVE_TOOLTIP:Lnet/minecraft/text/Text;- intermediary - field_26468- Lnet/minecraft/class_4367;field_26468:Lnet/minecraft/class_2561;- official - w- Lfin;w:Lwp;
 
- 
MINIGAME_TOOLTIP- Mappings:
- Namespace - Name - Mixin selector - named - MINIGAME_TOOLTIP- Lnet/minecraft/client/realms/gui/RealmsWorldSlotButton;MINIGAME_TOOLTIP:Lnet/minecraft/text/Text;- intermediary - field_26469- Lnet/minecraft/class_4367;field_26469:Lnet/minecraft/class_2561;- official - x- Lfin;x:Lwp;
 
- 
TOOLTIP- Mappings:
- Namespace - Name - Mixin selector - named - TOOLTIP- Lnet/minecraft/client/realms/gui/RealmsWorldSlotButton;TOOLTIP:Lnet/minecraft/text/Text;- intermediary - field_26470- Lnet/minecraft/class_4367;field_26470:Lnet/minecraft/class_2561;- official - y- Lfin;y:Lwp;
 
- 
MINIGAME_SLOT_NAME- Mappings:
- Namespace - Name - Mixin selector - named - MINIGAME_SLOT_NAME- Lnet/minecraft/client/realms/gui/RealmsWorldSlotButton;MINIGAME_SLOT_NAME:Lnet/minecraft/text/Text;- intermediary - field_44894- Lnet/minecraft/class_4367;field_44894:Lnet/minecraft/class_2561;- official - z- Lfin;z:Lwp;
 
- 
MAX_DISPLAYED_SLOT_NAME_LENGTHprivate static final int MAX_DISPLAYED_SLOT_NAME_LENGTH- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - MAX_DISPLAYED_SLOT_NAME_LENGTH- Lnet/minecraft/client/realms/gui/RealmsWorldSlotButton;MAX_DISPLAYED_SLOT_NAME_LENGTH:I- intermediary - field_54472- Lnet/minecraft/class_4367;field_54472:I- official - A- Lfin;A:I
 
- 
ELLIPSIS- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - ELLIPSIS- Lnet/minecraft/client/realms/gui/RealmsWorldSlotButton;ELLIPSIS:Ljava/lang/String;- intermediary - field_54473- Lnet/minecraft/class_4367;field_54473:Ljava/lang/String;- official - B- Lfin;B:Ljava/lang/String;
 
- 
slotIndexprivate final int slotIndex- Mappings:
- Namespace - Name - Mixin selector - named - slotIndex- Lnet/minecraft/client/realms/gui/RealmsWorldSlotButton;slotIndex:I- intermediary - field_19675- Lnet/minecraft/class_4367;field_19675:I- official - C- Lfin;C:I
 
- 
state- Mappings:
- Namespace - Name - Mixin selector - named - state- Lnet/minecraft/client/realms/gui/RealmsWorldSlotButton;state:Lnet/minecraft/client/realms/gui/RealmsWorldSlotButton$State;- intermediary - field_19677- Lnet/minecraft/class_4367;field_19677:Lnet/minecraft/class_4367$class_4370;- official - D- Lfin;D:Lfin$b;
 
 
- 
- 
Constructor Details- 
RealmsWorldSlotButtonpublic RealmsWorldSlotButton(int x, int y, int width, int height, int slotIndex, ButtonWidget.PressAction pressAction) - Mappings:
- Namespace - Name - Mixin selector - named - <init>- Lnet/minecraft/client/realms/gui/RealmsWorldSlotButton;<init>(IIIIILnet/minecraft/client/gui/widget/ButtonWidget$PressAction;)V- intermediary - <init>- Lnet/minecraft/class_4367;<init>(IIIIILnet/minecraft/class_4185$class_4241;)V- official - <init>- Lfin;<init>(IIIIILfou$c;)V
 
 
- 
- 
Method Details- 
getState- Mappings:
- Namespace - Name - Mixin selector - named - getState- Lnet/minecraft/client/realms/gui/RealmsWorldSlotButton;getState()Lnet/minecraft/client/realms/gui/RealmsWorldSlotButton$State;- intermediary - method_25099- Lnet/minecraft/class_4367;method_25099()Lnet/minecraft/class_4367$class_4370;- official - a- Lfin;a()Lfin$b;
 
- 
setServer- Mappings:
- Namespace - Name - Mixin selector - named - setServer- Lnet/minecraft/client/realms/gui/RealmsWorldSlotButton;setServer(Lnet/minecraft/client/realms/dto/RealmsServer;)V- intermediary - method_54571- Lnet/minecraft/class_4367;method_54571(Lnet/minecraft/class_4877;)V- official - a- Lfin;a(Lfhm;)V
 
- 
updateTooltipprivate void updateTooltip(RealmsWorldSlotButton.State state, @Nullable @Nullable String minigameName) - Mappings:
- Namespace - Name - Mixin selector - named - updateTooltip- Lnet/minecraft/client/realms/gui/RealmsWorldSlotButton;updateTooltip(Lnet/minecraft/client/realms/gui/RealmsWorldSlotButton$State;Ljava/lang/String;)V- intermediary - method_54572- Lnet/minecraft/class_4367;method_54572(Lnet/minecraft/class_4367$class_4370;Ljava/lang/String;)V- official - a- Lfin;a(Lfin$b;Ljava/lang/String;)V
 
- 
getActionstatic RealmsWorldSlotButton.Action getAction(RealmsServer server, boolean active, boolean minigame) - Mappings:
- Namespace - Name - Mixin selector - named - getAction- Lnet/minecraft/client/realms/gui/RealmsWorldSlotButton;getAction(Lnet/minecraft/client/realms/dto/RealmsServer;ZZ)Lnet/minecraft/client/realms/gui/RealmsWorldSlotButton$Action;- intermediary - method_27455- Lnet/minecraft/class_4367;method_27455(Lnet/minecraft/class_4877;ZZ)Lnet/minecraft/class_4367$class_4368;- official - a- Lfin;a(Lfhm;ZZ)Lfin$a;
 
- 
renderWidget- Overrides:
- renderWidgetin class- PressableWidget
- Mappings:
- Namespace - Name - Mixin selector - named - renderWidget- Lnet/minecraft/client/gui/widget/ClickableWidget;renderWidget(Lnet/minecraft/client/gui/DrawContext;IIF)V- intermediary - method_48579- Lnet/minecraft/class_339;method_48579(Lnet/minecraft/class_332;IIF)V- official - b- Lfos;b(Lfof;IIF)V
 
 
-