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 official eskintermediary net/minecraft/class_4367named net/minecraft/client/realms/gui/RealmsWorldSlotButton
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic classNested classes/interfaces inherited from class net.minecraft.client.gui.widget.ButtonWidget
ButtonWidget.Builder, ButtonWidget.NarrationSupplier, ButtonWidget.PressActionNested classes/interfaces inherited from interface net.minecraft.client.gui.Selectable
Selectable.SelectionType -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Textprivate static final Identifierstatic final Identifier(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.ButtonWidget
DEFAULT_HEIGHT, DEFAULT_NARRATION_SUPPLIER, DEFAULT_WIDTH, DEFAULT_WIDTH_SMALL, field_46856, narrationSupplier, onPressFields inherited from class net.minecraft.client.gui.widget.PressableWidget
field_43050Fields inherited from class net.minecraft.client.gui.widget.ClickableWidget
active, alpha, height, hovered, visible, widthFields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL -
Constructor Summary
ConstructorsConstructorDescriptionRealmsWorldSlotButton(int x, int y, int width, int height, int slotIndex, ButtonWidget.PressAction pressAction) -
Method Summary
Modifier 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, String minigameName) Methods inherited from class net.minecraft.client.gui.widget.ButtonWidget
appendClickableNarrations, builder, getNarrationMessage, onPressMethods inherited from class net.minecraft.client.gui.widget.PressableWidget
drawMessage, keyPressed, onClickMethods inherited from class net.minecraft.client.gui.widget.ClickableWidget
appendDefaultNarrations, appendNarrations, clicked, 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, playDownSound, render, setAlpha, setDimensions, setDimensionsAndPosition, setFocused, setHeight, setMessage, setNavigationOrder, setTooltip, setTooltipDelay, setWidth, setX, setYMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.Element
charTyped, getFocusedPath, keyReleased, mouseMoved, mouseScrolledMethods inherited from interface net.minecraft.client.gui.widget.Widget
setPosition
-
Field Details
-
SLOT_FRAME
- Mappings:
Namespace Name Mixin selector official tLesk;t:Lahg;intermediary field_22681Lnet/minecraft/class_4367;field_22681:Lnet/minecraft/class_2960;named SLOT_FRAMELnet/minecraft/client/realms/gui/RealmsWorldSlotButton;SLOT_FRAME:Lnet/minecraft/util/Identifier;
-
CHECKMARK
- Mappings:
Namespace Name Mixin selector official uLesk;u:Lahg;intermediary field_39067Lnet/minecraft/class_4367;field_39067:Lnet/minecraft/class_2960;named CHECKMARKLnet/minecraft/client/realms/gui/RealmsWorldSlotButton;CHECKMARK:Lnet/minecraft/util/Identifier;
-
EMPTY_FRAME
- Mappings:
Namespace Name Mixin selector official aLesk;a:Lahg;intermediary field_22682Lnet/minecraft/class_4367;field_22682:Lnet/minecraft/class_2960;named EMPTY_FRAMELnet/minecraft/client/realms/gui/RealmsWorldSlotButton;EMPTY_FRAME:Lnet/minecraft/util/Identifier;
-
PANORAMA_0
- Mappings:
Namespace Name Mixin selector official bLesk;b:Lahg;intermediary field_22683Lnet/minecraft/class_4367;field_22683:Lnet/minecraft/class_2960;named PANORAMA_0Lnet/minecraft/client/realms/gui/RealmsWorldSlotButton;PANORAMA_0:Lnet/minecraft/util/Identifier;
-
PANORAMA_2
- Mappings:
Namespace Name Mixin selector official cLesk;c:Lahg;intermediary field_22684Lnet/minecraft/class_4367;field_22684:Lnet/minecraft/class_2960;named PANORAMA_2Lnet/minecraft/client/realms/gui/RealmsWorldSlotButton;PANORAMA_2:Lnet/minecraft/util/Identifier;
-
PANORAMA_3
- Mappings:
Namespace Name Mixin selector official dLesk;d:Lahg;intermediary field_22685Lnet/minecraft/class_4367;field_22685:Lnet/minecraft/class_2960;named PANORAMA_3Lnet/minecraft/client/realms/gui/RealmsWorldSlotButton;PANORAMA_3:Lnet/minecraft/util/Identifier;
-
ACTIVE_TOOLTIP
- Mappings:
Namespace Name Mixin selector official vLesk;v:Lvf;intermediary field_26468Lnet/minecraft/class_4367;field_26468:Lnet/minecraft/class_2561;named ACTIVE_TOOLTIPLnet/minecraft/client/realms/gui/RealmsWorldSlotButton;ACTIVE_TOOLTIP:Lnet/minecraft/text/Text;
-
MINIGAME_TOOLTIP
- Mappings:
Namespace Name Mixin selector official wLesk;w:Lvf;intermediary field_26469Lnet/minecraft/class_4367;field_26469:Lnet/minecraft/class_2561;named MINIGAME_TOOLTIPLnet/minecraft/client/realms/gui/RealmsWorldSlotButton;MINIGAME_TOOLTIP:Lnet/minecraft/text/Text;
-
TOOLTIP
- Mappings:
Namespace Name Mixin selector official xLesk;x:Lvf;intermediary field_26470Lnet/minecraft/class_4367;field_26470:Lnet/minecraft/class_2561;named TOOLTIPLnet/minecraft/client/realms/gui/RealmsWorldSlotButton;TOOLTIP:Lnet/minecraft/text/Text;
-
MINIGAME_SLOT_NAME
- Mappings:
Namespace Name Mixin selector official yLesk;y:Lvf;intermediary field_44894Lnet/minecraft/class_4367;field_44894:Lnet/minecraft/class_2561;named MINIGAME_SLOT_NAMELnet/minecraft/client/realms/gui/RealmsWorldSlotButton;MINIGAME_SLOT_NAME:Lnet/minecraft/text/Text;
-
slotIndex
private final int slotIndex- Mappings:
Namespace Name Mixin selector official zLesk;z:Iintermediary field_19675Lnet/minecraft/class_4367;field_19675:Inamed slotIndexLnet/minecraft/client/realms/gui/RealmsWorldSlotButton;slotIndex:I
-
state
- Mappings:
Namespace Name Mixin selector official ALesk;A:Lesk$b;intermediary field_19677Lnet/minecraft/class_4367;field_19677:Lnet/minecraft/class_4367$class_4370;named stateLnet/minecraft/client/realms/gui/RealmsWorldSlotButton;state:Lnet/minecraft/client/realms/gui/RealmsWorldSlotButton$State;
-
worldTooltip
- Mappings:
Namespace Name Mixin selector official BLesk;B:Leyr;intermediary field_46846Lnet/minecraft/class_4367;field_46846:Lnet/minecraft/class_7919;named worldTooltipLnet/minecraft/client/realms/gui/RealmsWorldSlotButton;worldTooltip:Lnet/minecraft/client/gui/tooltip/Tooltip;
-
-
Constructor Details
-
RealmsWorldSlotButton
public RealmsWorldSlotButton(int x, int y, int width, int height, int slotIndex, ButtonWidget.PressAction pressAction) - Mappings:
Namespace Name Mixin selector official <init>Lesk;<init>(IIIIILexg$c;)Vintermediary <init>Lnet/minecraft/class_4367;<init>(IIIIILnet/minecraft/class_4185$class_4241;)Vnamed <init>Lnet/minecraft/client/realms/gui/RealmsWorldSlotButton;<init>(IIIIILnet/minecraft/client/gui/widget/ButtonWidget$PressAction;)V
-
-
Method Details
-
getState
- Mappings:
Namespace Name Mixin selector official aLesk;a()Lesk$b;intermediary method_25099Lnet/minecraft/class_4367;method_25099()Lnet/minecraft/class_4367$class_4370;named getStateLnet/minecraft/client/realms/gui/RealmsWorldSlotButton;getState()Lnet/minecraft/client/realms/gui/RealmsWorldSlotButton$State;
-
setServer
- Mappings:
Namespace Name Mixin selector official aLesk;a(Leri;)Vintermediary method_54571Lnet/minecraft/class_4367;method_54571(Lnet/minecraft/class_4877;)Vnamed setServerLnet/minecraft/client/realms/gui/RealmsWorldSlotButton;setServer(Lnet/minecraft/client/realms/dto/RealmsServer;)V
-
updateTooltip
- Mappings:
Namespace Name Mixin selector official aLesk;a(Lesk$b;Ljava/lang/String;)Vintermediary method_54572Lnet/minecraft/class_4367;method_54572(Lnet/minecraft/class_4367$class_4370;Ljava/lang/String;)Vnamed updateTooltipLnet/minecraft/client/realms/gui/RealmsWorldSlotButton;updateTooltip(Lnet/minecraft/client/realms/gui/RealmsWorldSlotButton$State;Ljava/lang/String;)V
-
getAction
static RealmsWorldSlotButton.Action getAction(RealmsServer server, boolean active, boolean minigame) - Mappings:
Namespace Name Mixin selector official aLesk;a(Leri;ZZ)Lesk$a;intermediary method_27455Lnet/minecraft/class_4367;method_27455(Lnet/minecraft/class_4877;ZZ)Lnet/minecraft/class_4367$class_4368;named getActionLnet/minecraft/client/realms/gui/RealmsWorldSlotButton;getAction(Lnet/minecraft/client/realms/dto/RealmsServer;ZZ)Lnet/minecraft/client/realms/gui/RealmsWorldSlotButton$Action;
-
renderWidget
- Overrides:
renderWidgetin classPressableWidget- Mappings:
Namespace Name Mixin selector official bLexe;b(Lewu;IIF)Vintermediary method_48579Lnet/minecraft/class_339;method_48579(Lnet/minecraft/class_332;IIF)Vnamed renderWidgetLnet/minecraft/client/gui/widget/ClickableWidget;renderWidget(Lnet/minecraft/client/gui/DrawContext;IIF)V
-