Package net.minecraft.client.realms.gui
Class RealmsWorldSlotButton
java.lang.Object
net.minecraft.client.gui.DrawableHelper
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,Selectable
- Mappings:
Namespace Name official ecxintermediary 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.PressAction, ButtonWidget.TooltipSupplierNested classes/interfaces inherited from interface net.minecraft.client.gui.Selectable
Selectable.SelectionType -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Textstatic final Identifierstatic final Identifierprivate static final Textstatic final Identifierstatic final Identifierstatic final Identifierprivate final Supplier<RealmsServer>static final Identifierprivate final intprivate @Nullable RealmsWorldSlotButton.Stateprivate static final TextFields inherited from class net.minecraft.client.gui.widget.ButtonWidget
EMPTY, field_39499, field_39500, field_39501, onPress, tooltipSupplierFields inherited from class net.minecraft.client.gui.widget.ClickableWidget
active, alpha, height, hovered, visible, WIDGETS_TEXTURE, width, x, yFields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTUREFields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL -
Constructor Summary
ConstructorsConstructorDescriptionRealmsWorldSlotButton(int x, int y, int width, int height, Supplier<RealmsServer> serverDataProvider, Consumer<Text> tooltipSetter, int id, ButtonWidget.PressAction action) -
Method Summary
Modifier and TypeMethodDescriptionprivate voiddrawCheckmark(MatrixStack matrices, int x, int y) private voiddrawSlotFrame(MatrixStack matrices, int x, int y, int mouseX, int mouseY, boolean active, String slotName, int slotIndex, long imageId, @Nullable String image, boolean empty, boolean minigame, RealmsWorldSlotButton.Action action, @Nullable Text actionPrompt) private static RealmsWorldSlotButton.ActiongetAction(RealmsServer server, boolean active, boolean minigame) getActionPromptAndMessage(RealmsServer server, String text, boolean empty, boolean minigame, RealmsWorldSlotButton.Action action) getState()voidrenderButton(MatrixStack matrices, int mouseX, int mouseY, float delta) voidtick()Methods inherited from class net.minecraft.client.gui.widget.ButtonWidget
appendNarrations, onPress, renderTooltipMethods inherited from class net.minecraft.client.gui.widget.PressableWidget
keyPressed, onClickMethods inherited from class net.minecraft.client.gui.widget.ClickableWidget
appendDefaultNarrations, changeFocus, clicked, getHeight, getMessage, getNarrationMessage, getNarrationMessage, getType, getWidth, getYImage, isFocused, isHovered, isMouseOver, isNarratable, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, onDrag, onFocusedChanged, onRelease, playDownSound, render, renderBackground, setAlpha, setFocused, setMessage, setWidthMethods inherited from class net.minecraft.client.gui.DrawableHelper
disableScissor, drawCenteredText, drawCenteredText, drawCenteredTextWithShadow, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, drawWithOutline, drawWithShadow, enableScissor, fill, fillGradient, fillGradient, fillGradient, getZOffset, setZOffsetMethods 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, keyReleased, mouseMoved, mouseScrolled
-
Field Details
-
SLOT_FRAME
- Mappings:
Namespace Name Mixin selector official aLecx;a:Labb;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;
-
EMPTY_FRAME
- Mappings:
Namespace Name Mixin selector official bLecx;b:Labb;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;
-
CHECKMARK
- Mappings:
Namespace Name Mixin selector official cLecx;c:Labb;intermediary field_39067Lnet/minecraft/class_4367;field_39067:Lnet/minecraft/class_2960;named CHECKMARKLnet/minecraft/client/realms/gui/RealmsWorldSlotButton;CHECKMARK:Lnet/minecraft/util/Identifier;
-
PANORAMA_0
- Mappings:
Namespace Name Mixin selector official dLecx;d:Labb;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 eLecx;e:Labb;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 fLecx;f:Labb;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 yLecx;y:Lrq;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 zLecx;z:Lrq;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 ALecx;A:Lrq;intermediary field_26470Lnet/minecraft/class_4367;field_26470:Lnet/minecraft/class_2561;named TOOLTIPLnet/minecraft/client/realms/gui/RealmsWorldSlotButton;TOOLTIP:Lnet/minecraft/text/Text;
-
serverDataProvider
- Mappings:
Namespace Name Mixin selector official BLecx;B:Ljava/util/function/Supplier;intermediary field_19672Lnet/minecraft/class_4367;field_19672:Ljava/util/function/Supplier;named serverDataProviderLnet/minecraft/client/realms/gui/RealmsWorldSlotButton;serverDataProvider:Ljava/util/function/Supplier;
-
tooltipSetter
- Mappings:
Namespace Name Mixin selector official CLecx;C:Ljava/util/function/Consumer;intermediary field_19673Lnet/minecraft/class_4367;field_19673:Ljava/util/function/Consumer;named tooltipSetterLnet/minecraft/client/realms/gui/RealmsWorldSlotButton;tooltipSetter:Ljava/util/function/Consumer;
-
slotIndex
private final int slotIndex- Mappings:
Namespace Name Mixin selector official DLecx;D:Iintermediary field_19675Lnet/minecraft/class_4367;field_19675:Inamed slotIndexLnet/minecraft/client/realms/gui/RealmsWorldSlotButton;slotIndex:I
-
state
- Mappings:
Namespace Name Mixin selector official ELecx;E:Lecx$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;
-
-
Constructor Details
-
RealmsWorldSlotButton
public RealmsWorldSlotButton(int x, int y, int width, int height, Supplier<RealmsServer> serverDataProvider, Consumer<Text> tooltipSetter, int id, ButtonWidget.PressAction action) - Mappings:
Namespace Name Mixin selector official <init>Lecx;<init>(IIIILjava/util/function/Supplier;Ljava/util/function/Consumer;ILehp$a;)Vintermediary <init>Lnet/minecraft/class_4367;<init>(IIIILjava/util/function/Supplier;Ljava/util/function/Consumer;ILnet/minecraft/class_4185$class_4241;)Vnamed <init>Lnet/minecraft/client/realms/gui/RealmsWorldSlotButton;<init>(IIIILjava/util/function/Supplier;Ljava/util/function/Consumer;ILnet/minecraft/client/gui/widget/ButtonWidget$PressAction;)V
-
-
Method Details
-
getState
- Mappings:
Namespace Name Mixin selector official aLecx;a()Lecx$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;
-
tick
public void tick()- Mappings:
Namespace Name Mixin selector official bLecx;b()Vintermediary method_37007Lnet/minecraft/class_4367;method_37007()Vnamed tickLnet/minecraft/client/realms/gui/RealmsWorldSlotButton;tick()V
-
getAction
private static RealmsWorldSlotButton.Action getAction(RealmsServer server, boolean active, boolean minigame) - Mappings:
Namespace Name Mixin selector official aLecx;a(Lebv;ZZ)Lecx$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;
-
getActionPromptAndMessage
private com.mojang.datafixers.util.Pair<Text,Text> getActionPromptAndMessage(RealmsServer server, String text, boolean empty, boolean minigame, RealmsWorldSlotButton.Action action) - Mappings:
Namespace Name Mixin selector official aLecx;a(Lebv;Ljava/lang/String;ZZLecx$a;)Lcom/mojang/datafixers/util/Pair;intermediary method_27454Lnet/minecraft/class_4367;method_27454(Lnet/minecraft/class_4877;Ljava/lang/String;ZZLnet/minecraft/class_4367$class_4368;)Lcom/mojang/datafixers/util/Pair;named getActionPromptAndMessageLnet/minecraft/client/realms/gui/RealmsWorldSlotButton;getActionPromptAndMessage(Lnet/minecraft/client/realms/dto/RealmsServer;Ljava/lang/String;ZZLnet/minecraft/client/realms/gui/RealmsWorldSlotButton$Action;)Lcom/mojang/datafixers/util/Pair;
-
renderButton
- Overrides:
renderButtonin classButtonWidget- Mappings:
Namespace Name Mixin selector official bLehn;b(Leaq;IIF)Vintermediary method_25359Lnet/minecraft/class_339;method_25359(Lnet/minecraft/class_4587;IIF)Vnamed renderButtonLnet/minecraft/client/gui/widget/ClickableWidget;renderButton(Lnet/minecraft/client/util/math/MatrixStack;IIF)V
-
drawSlotFrame
private void drawSlotFrame(MatrixStack matrices, int x, int y, int mouseX, int mouseY, boolean active, String slotName, int slotIndex, long imageId, @Nullable @Nullable String image, boolean empty, boolean minigame, RealmsWorldSlotButton.Action action, @Nullable @Nullable Text actionPrompt) - Mappings:
Namespace Name Mixin selector official aLecx;a(Leaq;IIIIZLjava/lang/String;IJLjava/lang/String;ZZLecx$a;Lrq;)Vintermediary method_21107Lnet/minecraft/class_4367;method_21107(Lnet/minecraft/class_4587;IIIIZLjava/lang/String;IJLjava/lang/String;ZZLnet/minecraft/class_4367$class_4368;Lnet/minecraft/class_2561;)Vnamed drawSlotFrameLnet/minecraft/client/realms/gui/RealmsWorldSlotButton;drawSlotFrame(Lnet/minecraft/client/util/math/MatrixStack;IIIIZLjava/lang/String;IJLjava/lang/String;ZZLnet/minecraft/client/realms/gui/RealmsWorldSlotButton$Action;Lnet/minecraft/text/Text;)V
-
drawCheckmark
- Mappings:
Namespace Name Mixin selector official bLecx;b(Leaq;II)Vintermediary method_43586Lnet/minecraft/class_4367;method_43586(Lnet/minecraft/class_4587;II)Vnamed drawCheckmarkLnet/minecraft/client/realms/gui/RealmsWorldSlotButton;drawCheckmark(Lnet/minecraft/client/util/math/MatrixStack;II)V
-