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/RealmsWorldSlotButtonintermediary net/minecraft/class_4367official fwz
-
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 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 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, field_49479, narrationSupplier, onPressFields inherited from class net.minecraft.client.gui.widget.PressableWidget
field_43050 -
Constructor Summary
ConstructorsConstructorDescriptionRealmsWorldSlotButton(int x, int y, int width, int height, int slotIndex, RealmsServer server, ButtonWidget.PressAction onPress) -
Method Summary
Modifier and TypeMethodDescription(package private) static RealmsWorldSlotButton.ActiongetAction(boolean bool, boolean active, boolean bool2) getState()booleanvoidrenderWidget(DrawContext context, int mouseX, int mouseY, float deltaTicks) setServer(RealmsServer server) private voidupdateTooltip(RealmsWorldSlotButton.State state, @Nullable 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, drawScrollableText, drawScrollableText, drawScrollableText, forEachChild, getBottom, getHeight, getMessage, getNarrationMessage, getNavigationFocus, getNavigationOrder, getNavigationPath, getRight, getType, getWidth, getX, getY, isFocused, isHovered, isMouseOver, 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.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.Element
charTyped, getBorder, getFocusedPath, isClickable, keyReleased, mouseMoved, mouseScrolledMethods inherited from interface net.minecraft.client.gui.Selectable
getNarratedPartsMethods inherited from interface net.minecraft.client.gui.widget.Widget
setPosition
-
Field Details
-
SLOT_FRAME
- Mappings:
Namespace Name Mixin selector named SLOT_FRAMELnet/minecraft/client/realms/gui/RealmsWorldSlotButton;SLOT_FRAME:Lnet/minecraft/util/Identifier;intermediary field_22681Lnet/minecraft/class_4367;field_22681:Lnet/minecraft/class_2960;official tLfwz;t:Lamj;
-
EMPTY_FRAME
- Mappings:
Namespace Name Mixin selector named EMPTY_FRAMELnet/minecraft/client/realms/gui/RealmsWorldSlotButton;EMPTY_FRAME:Lnet/minecraft/util/Identifier;intermediary field_22682Lnet/minecraft/class_4367;field_22682:Lnet/minecraft/class_2960;official aLfwz;a:Lamj;
-
PANORAMA_0
- Mappings:
Namespace Name Mixin selector named PANORAMA_0Lnet/minecraft/client/realms/gui/RealmsWorldSlotButton;PANORAMA_0:Lnet/minecraft/util/Identifier;intermediary field_22683Lnet/minecraft/class_4367;field_22683:Lnet/minecraft/class_2960;official bLfwz;b:Lamj;
-
PANORAMA_2
- Mappings:
Namespace Name Mixin selector named PANORAMA_2Lnet/minecraft/client/realms/gui/RealmsWorldSlotButton;PANORAMA_2:Lnet/minecraft/util/Identifier;intermediary field_22684Lnet/minecraft/class_4367;field_22684:Lnet/minecraft/class_2960;official cLfwz;c:Lamj;
-
PANORAMA_3
- Mappings:
Namespace Name Mixin selector named PANORAMA_3Lnet/minecraft/client/realms/gui/RealmsWorldSlotButton;PANORAMA_3:Lnet/minecraft/util/Identifier;intermediary field_22685Lnet/minecraft/class_4367;field_22685:Lnet/minecraft/class_2960;official dLfwz;d:Lamj;
-
MINIGAME_TOOLTIP
- Mappings:
Namespace Name Mixin selector named MINIGAME_TOOLTIPLnet/minecraft/client/realms/gui/RealmsWorldSlotButton;MINIGAME_TOOLTIP:Lnet/minecraft/text/Text;intermediary field_26469Lnet/minecraft/class_4367;field_26469:Lnet/minecraft/class_2561;official uLfwz;u:Lxx;
-
TOOLTIP
- Mappings:
Namespace Name Mixin selector named TOOLTIPLnet/minecraft/client/realms/gui/RealmsWorldSlotButton;TOOLTIP:Lnet/minecraft/text/Text;intermediary field_26470Lnet/minecraft/class_4367;field_26470:Lnet/minecraft/class_2561;official vLfwz;v:Lxx;
-
MINIGAME_SLOT_NAME
- Mappings:
Namespace Name Mixin selector named MINIGAME_SLOT_NAMELnet/minecraft/client/realms/gui/RealmsWorldSlotButton;MINIGAME_SLOT_NAME:Lnet/minecraft/text/Text;intermediary field_44894Lnet/minecraft/class_4367;field_44894:Lnet/minecraft/class_2561;official wLfwz;w:Lxx;
-
MAX_DISPLAYED_SLOT_NAME_LENGTH
private static final int MAX_DISPLAYED_SLOT_NAME_LENGTH- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_DISPLAYED_SLOT_NAME_LENGTHLnet/minecraft/client/realms/gui/RealmsWorldSlotButton;MAX_DISPLAYED_SLOT_NAME_LENGTH:Iintermediary field_54472Lnet/minecraft/class_4367;field_54472:Iofficial xLfwz;x:I
-
ELLIPSIS
- See Also:
- Mappings:
Namespace Name Mixin selector named ELLIPSISLnet/minecraft/client/realms/gui/RealmsWorldSlotButton;ELLIPSIS:Ljava/lang/String;intermediary field_54473Lnet/minecraft/class_4367;field_54473:Ljava/lang/String;official yLfwz;y:Ljava/lang/String;
-
slotIndex
private final int slotIndex- Mappings:
Namespace Name Mixin selector named slotIndexLnet/minecraft/client/realms/gui/RealmsWorldSlotButton;slotIndex:Iintermediary field_19675Lnet/minecraft/class_4367;field_19675:Iofficial zLfwz;z:I
-
state
- Mappings:
Namespace Name Mixin selector named stateLnet/minecraft/client/realms/gui/RealmsWorldSlotButton;state:Lnet/minecraft/client/realms/gui/RealmsWorldSlotButton$State;intermediary field_19677Lnet/minecraft/class_4367;field_19677:Lnet/minecraft/class_4367$class_4370;official ALfwz;A:Lfwz$b;
-
-
Constructor Details
-
RealmsWorldSlotButton
public RealmsWorldSlotButton(int x, int y, int width, int height, int slotIndex, RealmsServer server, ButtonWidget.PressAction onPress) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/realms/gui/RealmsWorldSlotButton;<init>(IIIIILnet/minecraft/client/realms/dto/RealmsServer;Lnet/minecraft/client/gui/widget/ButtonWidget$PressAction;)Vintermediary <init>Lnet/minecraft/class_4367;<init>(IIIIILnet/minecraft/class_4877;Lnet/minecraft/class_4185$class_4241;)Vofficial <init>Lfwz;<init>(IIIIILfvt;Lgdp$c;)V
-
-
Method Details
-
getState
- Mappings:
Namespace Name Mixin selector named getStateLnet/minecraft/client/realms/gui/RealmsWorldSlotButton;getState()Lnet/minecraft/client/realms/gui/RealmsWorldSlotButton$State;intermediary method_25099Lnet/minecraft/class_4367;method_25099()Lnet/minecraft/class_4367$class_4370;official aLfwz;a()Lfwz$b;
-
setServer
- Mappings:
Namespace Name Mixin selector named setServerLnet/minecraft/client/realms/gui/RealmsWorldSlotButton;setServer(Lnet/minecraft/client/realms/dto/RealmsServer;)Lnet/minecraft/client/realms/gui/RealmsWorldSlotButton$State;intermediary method_54571Lnet/minecraft/class_4367;method_54571(Lnet/minecraft/class_4877;)Lnet/minecraft/class_4367$class_4370;official aLfwz;a(Lfvt;)Lfwz$b;
-
updateTooltip
private void updateTooltip(RealmsWorldSlotButton.State state, @Nullable @Nullable String minigameName) - Mappings:
Namespace Name Mixin selector named updateTooltipLnet/minecraft/client/realms/gui/RealmsWorldSlotButton;updateTooltip(Lnet/minecraft/client/realms/gui/RealmsWorldSlotButton$State;Ljava/lang/String;)Vintermediary method_54572Lnet/minecraft/class_4367;method_54572(Lnet/minecraft/class_4367$class_4370;Ljava/lang/String;)Vofficial aLfwz;a(Lfwz$b;Ljava/lang/String;)V
-
getAction
- Mappings:
Namespace Name Mixin selector named getActionLnet/minecraft/client/realms/gui/RealmsWorldSlotButton;getAction(ZZZ)Lnet/minecraft/client/realms/gui/RealmsWorldSlotButton$Action;intermediary method_27455Lnet/minecraft/class_4367;method_27455(ZZZ)Lnet/minecraft/class_4367$class_4368;official aLfwz;a(ZZZ)Lfwz$a;
-
isInteractable
public boolean isInteractable()- Specified by:
isInteractablein interfaceSelectable- Overrides:
isInteractablein classClickableWidget- Mappings:
Namespace Name Mixin selector named isInteractableLnet/minecraft/client/gui/Selectable;isInteractable()Zintermediary method_37303Lnet/minecraft/class_6379;method_37303()Zofficial bLgjj;b()Z
-
renderWidget
- Overrides:
renderWidgetin classPressableWidget- Mappings:
Namespace Name Mixin selector named renderWidgetLnet/minecraft/client/gui/widget/ClickableWidget;renderWidget(Lnet/minecraft/client/gui/DrawContext;IIF)Vintermediary method_48579Lnet/minecraft/class_339;method_48579(Lnet/minecraft/class_332;IIF)Vofficial bLgdn;b(Lgdd;IIF)V
-