Class RealmsWorldSlotButton

All Implemented Interfaces:
Drawable, Element, Narratable, Selectable

@Environment(CLIENT) public class RealmsWorldSlotButton extends ButtonWidget
Mappings:
Namespace Name
official dsp
intermediary net/minecraft/class_4367
named net/minecraft/client/realms/gui/RealmsWorldSlotButton
  • Field Details

    • SLOT_FRAME

      public static final Identifier SLOT_FRAME
      Mappings:
      Namespace Name Mixin selector
      official a Ldsp;a:Lww;
      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

      public static final Identifier EMPTY_FRAME
      Mappings:
      Namespace Name Mixin selector
      official b Ldsp;b:Lww;
      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

      public static final Identifier PANORAMA_0
      Mappings:
      Namespace Name Mixin selector
      official c Ldsp;c:Lww;
      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

      public static final Identifier PANORAMA_2
      Mappings:
      Namespace Name Mixin selector
      official d Ldsp;d:Lww;
      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

      public static final Identifier PANORAMA_3
      Mappings:
      Namespace Name Mixin selector
      official e Ldsp;e:Lww;
      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

      private static final Text ACTIVE_TOOLTIP
      Mappings:
      Namespace Name Mixin selector
      official u Ldsp;u:Los;
      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

      private static final Text MINIGAME_TOOLTIP
      Mappings:
      Namespace Name Mixin selector
      official v Ldsp;v:Los;
      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

      private static final Text TOOLTIP
      Mappings:
      Namespace Name Mixin selector
      official w Ldsp;w:Los;
      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

      private final Supplier<RealmsServer> serverDataProvider
      Mappings:
      Namespace Name Mixin selector
      official x Ldsp;x: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

      private final Consumer<Text> toolTipSetter
      Mappings:
      Namespace Name Mixin selector
      official y Ldsp;y: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 z Ldsp;z: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 A Ldsp;A: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 B Ldsp;B:Ldsp$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> Ldsp;<init>(IIIILjava/util/function/Supplier;Ljava/util/function/Consumer;ILdwz$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 Ldsp;a()Ldsp$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;
    • method_37007

      public void method_37007()
      Mappings:
      Namespace Name Mixin selector
      official b Ldsp;b()V
      intermediary method_37007 Lnet/minecraft/class_4367;method_37007()V
      named method_37007 Lnet/minecraft/client/realms/gui/RealmsWorldSlotButton;method_37007()V
    • getAction

      private static RealmsWorldSlotButton.Action getAction(RealmsServer server, boolean active, boolean minigame)
      Mappings:
      Namespace Name Mixin selector
      official a Ldsp;a(Ldrp;ZZ)Ldsp$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 Ldsp;a(Ldrp;Ljava/lang/String;ZZLdsp$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

      public void renderButton(MatrixStack matrices, int mouseX, int mouseY, float delta)
      Overrides:
      renderButton in class ButtonWidget
      Mappings:
      Namespace Name Mixin selector
      official b Ldwx;b(Ldqk;IIF)V
      intermediary method_25359 Lnet/minecraft/class_339;method_25359(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 Ldsp;a(Ldqk;IIIIZLjava/lang/String;IJLjava/lang/String;ZZLdsp$a;Los;)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