Package net.minecraft.client.realms.gui
Class RealmsWorldSlotButton
java.lang.Object
net.minecraft.client.gui.DrawableHelper
net.minecraft.client.gui.widget.AbstractButtonWidget
net.minecraft.client.gui.widget.AbstractPressableButtonWidget
net.minecraft.client.gui.widget.ButtonWidget
net.minecraft.client.realms.gui.RealmsWorldSlotButton
- All Implemented Interfaces:
Drawable
,Element
,TickableElement
@Environment(CLIENT) public class RealmsWorldSlotButton extends ButtonWidget implements TickableElement
- Mappings:
Namespace Name official dnr
intermediary net/minecraft/class_4367
named net/minecraft/client/realms/gui/RealmsWorldSlotButton
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RealmsWorldSlotButton.Action
static class
RealmsWorldSlotButton.State
Nested classes/interfaces inherited from class net.minecraft.client.gui.widget.ButtonWidget
ButtonWidget.PressAction, ButtonWidget.TooltipSupplier
-
Field Summary
Fields Modifier and Type Field Description private static Text
ACTIVE_TOOLTIP
private int
animTick
static Identifier
EMPTY_FRAME
private static Text
MINIGAME_TOOLTIP
static Identifier
PANORAMA_0
static Identifier
PANORAMA_2
static Identifier
PANORAMA_3
private Supplier<RealmsServer>
serverDataProvider
static Identifier
SLOT_FRAME
private int
slotIndex
private RealmsWorldSlotButton.State
state
private static Text
TOOLTIP
private Consumer<Text>
toolTipSetter
Fields inherited from class net.minecraft.client.gui.widget.ButtonWidget
EMPTY, onPress, tooltipSupplier
Fields inherited from class net.minecraft.client.gui.widget.AbstractButtonWidget
active, alpha, height, hovered, nextNarration, visible, WIDGETS_LOCATION, width, x, y
Fields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
-
Constructor Summary
Constructors Constructor Description RealmsWorldSlotButton(int x, int y, int width, int height, Supplier<RealmsServer> serverDataProvider, Consumer<Text> toolTipSetter, int id, ButtonWidget.PressAction action)
-
Method Summary
Modifier and Type Method Description private void
drawSlotFrame(MatrixStack matrices, int x, int y, int mouseX, int mouseY, boolean bool, String text, int int2, long long2, String string, boolean bool2, boolean bool3, RealmsWorldSlotButton.Action action, Text text2)
RealmsWorldSlotButton.State
getState()
private com.mojang.datafixers.util.Pair<Text,Text>
method_27454(RealmsServer realmsServer, String string, boolean bool, boolean bool2, RealmsWorldSlotButton.Action action)
private static RealmsWorldSlotButton.Action
method_27455(RealmsServer realmsServer, boolean bool, boolean bool2)
void
renderButton(MatrixStack matrices, int mouseX, int mouseY, float delta)
void
tick()
Methods inherited from class net.minecraft.client.gui.widget.ButtonWidget
onPress, renderToolTip
Methods inherited from class net.minecraft.client.gui.widget.AbstractPressableButtonWidget
keyPressed, onClick
Methods inherited from class net.minecraft.client.gui.widget.AbstractButtonWidget
changeFocus, clicked, getHeight, getMessage, getNarrationMessage, getNarrationMessage, getWidth, getYImage, isFocused, isHovered, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrate, onDrag, onFocusedChanged, onRelease, playDownSound, queueNarration, render, renderBg, setAlpha, setFocused, setMessage, setWidth
Methods inherited from class net.minecraft.client.gui.DrawableHelper
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, method_33284, setZOffset
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, keyReleased, mouseMoved, mouseScrolled
-
Field Details
-
SLOT_FRAME
- Mappings:
Namespace Name Mixin selector official a
Ldnr;a:Lwb;
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
Ldnr;b:Lwb;
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;
-
PANORAMA_0
- Mappings:
Namespace Name Mixin selector official c
Ldnr;c:Lwb;
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 d
Ldnr;d:Lwb;
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 e
Ldnr;e:Lwb;
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 v
Ldnr;v:Loi;
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 w
Ldnr;w:Loi;
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 x
Ldnr;x:Loi;
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 y
Ldnr;y: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 z
Ldnr;z: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 A
Ldnr;A:I
intermediary field_19675
Lnet/minecraft/class_4367;field_19675:I
named slotIndex
Lnet/minecraft/client/realms/gui/RealmsWorldSlotButton;slotIndex:I
-
animTick
private int animTick- Mappings:
Namespace Name Mixin selector official B
Ldnr;B:I
intermediary field_19676
Lnet/minecraft/class_4367;field_19676:I
named animTick
Lnet/minecraft/client/realms/gui/RealmsWorldSlotButton;animTick:I
-
state
- Mappings:
Namespace Name Mixin selector official C
Ldnr;C:Ldnr$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>
Ldnr;<init>(IIIILjava/util/function/Supplier;Ljava/util/function/Consumer;ILdru$a;)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
Ldnr;a()Ldnr$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()- Specified by:
tick
in interfaceTickableElement
- Mappings:
Namespace Name Mixin selector official d
Ldsn;d()V
intermediary method_25393
Lnet/minecraft/class_4893;method_25393()V
named tick
Lnet/minecraft/client/gui/screen/TickableElement;tick()V
-
method_27455
private static RealmsWorldSlotButton.Action method_27455(RealmsServer realmsServer, boolean bool, boolean bool2)- Mappings:
Namespace Name Mixin selector official a
Ldnr;a(Ldmv;ZZ)Ldnr$a;
intermediary method_27455
Lnet/minecraft/class_4367;method_27455(Lnet/minecraft/class_4877;ZZ)Lnet/minecraft/class_4367$class_4368;
named method_27455
Lnet/minecraft/client/realms/gui/RealmsWorldSlotButton;method_27455(Lnet/minecraft/client/realms/dto/RealmsServer;ZZ)Lnet/minecraft/client/realms/gui/RealmsWorldSlotButton$Action;
-
method_27454
private com.mojang.datafixers.util.Pair<Text,Text> method_27454(RealmsServer realmsServer, String string, boolean bool, boolean bool2, RealmsWorldSlotButton.Action action)- Mappings:
Namespace Name Mixin selector official a
Ldnr;a(Ldmv;Ljava/lang/String;ZZLdnr$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 method_27454
Lnet/minecraft/client/realms/gui/RealmsWorldSlotButton;method_27454(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 classButtonWidget
- Mappings:
Namespace Name Mixin selector official b
Ldrs;b(Ldlr;IIF)V
intermediary method_25359
Lnet/minecraft/class_339;method_25359(Lnet/minecraft/class_4587;IIF)V
named renderButton
Lnet/minecraft/client/gui/widget/AbstractButtonWidget;renderButton(Lnet/minecraft/client/util/math/MatrixStack;IIF)V
-
drawSlotFrame
private void drawSlotFrame(MatrixStack matrices, int x, int y, int mouseX, int mouseY, boolean bool, String text, int int2, long long2, @Nullable String string, boolean bool2, boolean bool3, RealmsWorldSlotButton.Action action, @Nullable Text text2)- Mappings:
Namespace Name Mixin selector official a
Ldnr;a(Ldlr;IIIIZLjava/lang/String;IJLjava/lang/String;ZZLdnr$a;Loi;)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
-