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
,Navigable
,Selectable
,Widget
- Mappings:
Namespace Name official ejn
intermediary net/minecraft/class_4367
named net/minecraft/client/realms/gui/RealmsWorldSlotButton
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
static class
Nested classes/interfaces inherited from class net.minecraft.client.gui.widget.ButtonWidget
ButtonWidget.Builder, ButtonWidget.NarrationSupplier, ButtonWidget.PressAction
Nested classes/interfaces inherited from interface net.minecraft.client.gui.Selectable
Selectable.SelectionType
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final Text
static final Identifier
static final Identifier
private static final Text
static final Identifier
static final Identifier
static final Identifier
private final Supplier<RealmsServer>
static final Identifier
private final int
private @Nullable RealmsWorldSlotButton.State
private static final Text
Fields inherited from class net.minecraft.client.gui.widget.ButtonWidget
DEFAULT_HEIGHT, DEFAULT_NARRATION_SUPPLIER, DEFAULT_WIDTH, DEFAULT_WIDTH_SMALL, narrationSupplier, onPress
Fields inherited from class net.minecraft.client.gui.widget.PressableWidget
field_43046, field_43047, field_43048, field_43050, field_43100, field_43101
Fields inherited from class net.minecraft.client.gui.widget.ClickableWidget
ACCESSIBILITY_TEXTURE, active, alpha, height, hovered, visible, WIDGETS_TEXTURE, width
Fields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, LIGHT_DIRT_BACKGROUND_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
Fields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL
-
Constructor Summary
ConstructorDescriptionRealmsWorldSlotButton
(int x, int y, int width, int height, Supplier<RealmsServer> serverDataProvider, Consumer<Text> tooltipSetter, int id, ButtonWidget.PressAction action) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
drawCheckmark
(MatrixStack matrices, int x, int y) private void
drawSlotFrame
(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.Action
getAction
(RealmsServer server, boolean active, boolean minigame) getActionPromptAndMessage
(RealmsServer server, String text, boolean empty, boolean minigame, RealmsWorldSlotButton.Action action) getState()
void
renderButton
(MatrixStack matrices, int mouseX, int mouseY, float delta) void
tick()
Methods inherited from class net.minecraft.client.gui.widget.ButtonWidget
appendClickableNarrations, builder, getNarrationMessage, onPress
Methods inherited from class net.minecraft.client.gui.widget.PressableWidget
drawMessage, keyPressed, onClick
Methods inherited from class net.minecraft.client.gui.widget.ClickableWidget
appendDefaultNarrations, appendNarrations, clicked, drawScrollableText, drawScrollableText, drawTexture, forEachChild, getHeight, getMessage, getNarrationMessage, getNavigationFocus, getNavigationOrder, getNavigationPath, getTooltipPositioner, getType, getWidth, getX, getY, isFocused, isHovered, isMouseOver, isNarratable, isSelected, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, onDrag, onRelease, playDownSound, render, setAlpha, setFocused, setMessage, setNavigationOrder, setTooltip, setTooltipDelay, setWidth, setX, setY
Methods inherited from class net.minecraft.client.gui.DrawableHelper
disableScissor, drawBorder, drawCenteredTextWithShadow, drawCenteredTextWithShadow, drawCenteredTextWithShadow, drawHorizontalLine, drawNineSlicedTexture, drawNineSlicedTexture, drawNineSlicedTexture, drawRepeatingTexture, drawSprite, drawSprite, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawTextWithShadow, drawTextWithShadow, drawVerticalLine, drawWithOutline, enableScissor, fill, fill, fillGradient, fillGradient, fillGradient
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.gui.Element
charTyped, getFocusedPath, keyReleased, mouseMoved, mouseScrolled
Methods inherited from interface net.minecraft.client.gui.widget.Widget
setPosition
-
Field Details
-
SLOT_FRAME
- Mappings:
Namespace Name Mixin selector official a
Lejn;a:Ladd;
intermediary field_22681
Lnet/minecraft/class_4367;field_22681:Lnet/minecraft/class_2960;
named SLOT_FRAME
Lnet/minecraft/client/realms/gui/RealmsWorldSlotButton;SLOT_FRAME:Lnet/minecraft/util/Identifier;
-
EMPTY_FRAME
- Mappings:
Namespace Name Mixin selector official b
Lejn;b:Ladd;
intermediary field_22682
Lnet/minecraft/class_4367;field_22682:Lnet/minecraft/class_2960;
named EMPTY_FRAME
Lnet/minecraft/client/realms/gui/RealmsWorldSlotButton;EMPTY_FRAME:Lnet/minecraft/util/Identifier;
-
CHECKMARK
- Mappings:
Namespace Name Mixin selector official c
Lejn;c:Ladd;
intermediary field_39067
Lnet/minecraft/class_4367;field_39067:Lnet/minecraft/class_2960;
named CHECKMARK
Lnet/minecraft/client/realms/gui/RealmsWorldSlotButton;CHECKMARK:Lnet/minecraft/util/Identifier;
-
PANORAMA_0
- Mappings:
Namespace Name Mixin selector official d
Lejn;d:Ladd;
intermediary field_22683
Lnet/minecraft/class_4367;field_22683:Lnet/minecraft/class_2960;
named PANORAMA_0
Lnet/minecraft/client/realms/gui/RealmsWorldSlotButton;PANORAMA_0:Lnet/minecraft/util/Identifier;
-
PANORAMA_2
- Mappings:
Namespace Name Mixin selector official e
Lejn;e:Ladd;
intermediary field_22684
Lnet/minecraft/class_4367;field_22684:Lnet/minecraft/class_2960;
named PANORAMA_2
Lnet/minecraft/client/realms/gui/RealmsWorldSlotButton;PANORAMA_2:Lnet/minecraft/util/Identifier;
-
PANORAMA_3
- Mappings:
Namespace Name Mixin selector official f
Lejn;f:Ladd;
intermediary field_22685
Lnet/minecraft/class_4367;field_22685:Lnet/minecraft/class_2960;
named PANORAMA_3
Lnet/minecraft/client/realms/gui/RealmsWorldSlotButton;PANORAMA_3:Lnet/minecraft/util/Identifier;
-
ACTIVE_TOOLTIP
- Mappings:
Namespace Name Mixin selector official E
Lejn;E:Ltj;
intermediary field_26468
Lnet/minecraft/class_4367;field_26468:Lnet/minecraft/class_2561;
named ACTIVE_TOOLTIP
Lnet/minecraft/client/realms/gui/RealmsWorldSlotButton;ACTIVE_TOOLTIP:Lnet/minecraft/text/Text;
-
MINIGAME_TOOLTIP
- Mappings:
Namespace Name Mixin selector official F
Lejn;F:Ltj;
intermediary field_26469
Lnet/minecraft/class_4367;field_26469:Lnet/minecraft/class_2561;
named MINIGAME_TOOLTIP
Lnet/minecraft/client/realms/gui/RealmsWorldSlotButton;MINIGAME_TOOLTIP:Lnet/minecraft/text/Text;
-
TOOLTIP
- Mappings:
Namespace Name Mixin selector official G
Lejn;G:Ltj;
intermediary field_26470
Lnet/minecraft/class_4367;field_26470:Lnet/minecraft/class_2561;
named TOOLTIP
Lnet/minecraft/client/realms/gui/RealmsWorldSlotButton;TOOLTIP:Lnet/minecraft/text/Text;
-
serverDataProvider
- Mappings:
Namespace Name Mixin selector official H
Lejn;H:Ljava/util/function/Supplier;
intermediary field_19672
Lnet/minecraft/class_4367;field_19672:Ljava/util/function/Supplier;
named serverDataProvider
Lnet/minecraft/client/realms/gui/RealmsWorldSlotButton;serverDataProvider:Ljava/util/function/Supplier;
-
tooltipSetter
- Mappings:
Namespace Name Mixin selector official I
Lejn;I:Ljava/util/function/Consumer;
intermediary field_19673
Lnet/minecraft/class_4367;field_19673:Ljava/util/function/Consumer;
named tooltipSetter
Lnet/minecraft/client/realms/gui/RealmsWorldSlotButton;tooltipSetter:Ljava/util/function/Consumer;
-
slotIndex
private final int slotIndex- Mappings:
Namespace Name Mixin selector official J
Lejn;J:I
intermediary field_19675
Lnet/minecraft/class_4367;field_19675:I
named slotIndex
Lnet/minecraft/client/realms/gui/RealmsWorldSlotButton;slotIndex:I
-
state
- Mappings:
Namespace Name Mixin selector official K
Lejn;K:Lejn$b;
intermediary field_19677
Lnet/minecraft/class_4367;field_19677:Lnet/minecraft/class_4367$class_4370;
named state
Lnet/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>
Lejn;<init>(IIIILjava/util/function/Supplier;Ljava/util/function/Consumer;ILeoc$c;)V
intermediary <init>
Lnet/minecraft/class_4367;<init>(IIIILjava/util/function/Supplier;Ljava/util/function/Consumer;ILnet/minecraft/class_4185$class_4241;)V
named <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 a
Lejn;a()Lejn$b;
intermediary method_25099
Lnet/minecraft/class_4367;method_25099()Lnet/minecraft/class_4367$class_4370;
named getState
Lnet/minecraft/client/realms/gui/RealmsWorldSlotButton;getState()Lnet/minecraft/client/realms/gui/RealmsWorldSlotButton$State;
-
tick
public void tick()- Mappings:
Namespace Name Mixin selector official b
Lejn;b()V
intermediary method_37007
Lnet/minecraft/class_4367;method_37007()V
named tick
Lnet/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 a
Lejn;a(Leik;ZZ)Lejn$a;
intermediary method_27455
Lnet/minecraft/class_4367;method_27455(Lnet/minecraft/class_4877;ZZ)Lnet/minecraft/class_4367$class_4368;
named getAction
Lnet/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 a
Lejn;a(Leik;Ljava/lang/String;ZZLejn$a;)Lcom/mojang/datafixers/util/Pair;
intermediary method_27454
Lnet/minecraft/class_4367;method_27454(Lnet/minecraft/class_4877;Ljava/lang/String;ZZLnet/minecraft/class_4367$class_4368;)Lcom/mojang/datafixers/util/Pair;
named getActionPromptAndMessage
Lnet/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:
renderButton
in classPressableWidget
- Mappings:
Namespace Name Mixin selector official b
Lenz;b(Lehe;IIF)V
intermediary method_48579
Lnet/minecraft/class_339;method_48579(Lnet/minecraft/class_4587;IIF)V
named renderButton
Lnet/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 a
Lejn;a(Lehe;IIIIZLjava/lang/String;IJLjava/lang/String;ZZLejn$a;Ltj;)V
intermediary method_21107
Lnet/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;)V
named drawSlotFrame
Lnet/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 a
Lejn;a(Lehe;II)V
intermediary method_43586
Lnet/minecraft/class_4367;method_43586(Lnet/minecraft/class_4587;II)V
named drawCheckmark
Lnet/minecraft/client/realms/gui/RealmsWorldSlotButton;drawCheckmark(Lnet/minecraft/client/util/math/MatrixStack;II)V
-