Class RealmsSelectWorldTemplateScreen

All Implemented Interfaces:
Drawable, Element, ParentElement

@Environment(CLIENT) public class RealmsSelectWorldTemplateScreen extends RealmsScreen
Mappings:
Namespace Name
official dvk
intermediary net/minecraft/class_4419
named net/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen
  • Field Details

    • LOGGER

      static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official a Ldvk;a:Lorg/apache/logging/log4j/Logger;
      intermediary field_20069 Lnet/minecraft/class_4419;field_20069:Lorg/apache/logging/log4j/Logger;
      named LOGGER Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;LOGGER:Lorg/apache/logging/log4j/Logger;
    • TRAILER_ICONS

      static final Identifier TRAILER_ICONS
      Mappings:
      Namespace Name Mixin selector
      official c Ldvk;c:Lyh;
      intermediary field_22720 Lnet/minecraft/class_4419;field_22720:Lnet/minecraft/class_2960;
      named TRAILER_ICONS Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;TRAILER_ICONS:Lnet/minecraft/util/Identifier;
    • SLOT_FRAME

      static final Identifier SLOT_FRAME
      Mappings:
      Namespace Name Mixin selector
      official R Ldvk;R:Lyh;
      intermediary field_22721 Lnet/minecraft/class_4419;field_22721:Lnet/minecraft/class_2960;
      named SLOT_FRAME Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;SLOT_FRAME:Lnet/minecraft/util/Identifier;
    • INFO_TOOLTIP

      static final Text INFO_TOOLTIP
      Mappings:
      Namespace Name Mixin selector
      official S Ldvk;S:Lpz;
      intermediary field_26512 Lnet/minecraft/class_4419;field_26512:Lnet/minecraft/class_2561;
      named INFO_TOOLTIP Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;INFO_TOOLTIP:Lnet/minecraft/text/Text;
    • TRAILER_TOOLTIP

      static final Text TRAILER_TOOLTIP
      Mappings:
      Namespace Name Mixin selector
      official T Ldvk;T:Lpz;
      intermediary field_26513 Lnet/minecraft/class_4419;field_26513:Lnet/minecraft/class_2561;
      named TRAILER_TOOLTIP Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;TRAILER_TOOLTIP:Lnet/minecraft/text/Text;
    • callback

      private final Consumer<WorldTemplate> callback
      Mappings:
      Namespace Name Mixin selector
      official U Ldvk;U:Ljava/util/function/Consumer;
      intermediary field_27941 Lnet/minecraft/class_4419;field_27941:Ljava/util/function/Consumer;
      named callback Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;callback:Ljava/util/function/Consumer;
    • templateList

      Mappings:
      Namespace Name Mixin selector
      official V Ldvk;V:Ldvk$b;
      intermediary field_20071 Lnet/minecraft/class_4419;field_20071:Lnet/minecraft/class_4419$class_4420;
      named templateList Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;templateList:Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen$WorldTemplateObjectSelectionList;
    • selectedTemplate

      int selectedTemplate
      Mappings:
      Namespace Name Mixin selector
      official W Ldvk;W:I
      intermediary field_20072 Lnet/minecraft/class_4419;field_20072:I
      named selectedTemplate Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;selectedTemplate:I
    • selectButton

      private ButtonWidget selectButton
      Mappings:
      Namespace Name Mixin selector
      official X Ldvk;X:Ldza;
      intermediary field_20074 Lnet/minecraft/class_4419;field_20074:Lnet/minecraft/class_4185;
      named selectButton Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;selectButton:Lnet/minecraft/client/gui/widget/ButtonWidget;
    • trailerButton

      private ButtonWidget trailerButton
      Mappings:
      Namespace Name Mixin selector
      official Y Ldvk;Y:Ldza;
      intermediary field_20075 Lnet/minecraft/class_4419;field_20075:Lnet/minecraft/class_4185;
      named trailerButton Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;trailerButton:Lnet/minecraft/client/gui/widget/ButtonWidget;
    • publisherButton

      private ButtonWidget publisherButton
      Mappings:
      Namespace Name Mixin selector
      official Z Ldvk;Z:Ldza;
      intermediary field_20076 Lnet/minecraft/class_4419;field_20076:Lnet/minecraft/class_4185;
      named publisherButton Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;publisherButton:Lnet/minecraft/client/gui/widget/ButtonWidget;
    • tooltip

      Mappings:
      Namespace Name Mixin selector
      official aa Ldvk;aa:Lpz;
      intermediary field_20077 Lnet/minecraft/class_4419;field_20077:Lnet/minecraft/class_2561;
      named tooltip Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;tooltip:Lnet/minecraft/text/Text;
    • worldType

      private final RealmsServer.WorldType worldType
      Mappings:
      Namespace Name Mixin selector
      official ac Ldvk;ac:Ldto$c;
      intermediary field_20079 Lnet/minecraft/class_4419;field_20079:Lnet/minecraft/class_4877$class_4321;
      named worldType Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;worldType:Lnet/minecraft/client/realms/dto/RealmsServer$WorldType;
    • clicks

      int clicks
      Mappings:
      Namespace Name Mixin selector
      official ad Ldvk;ad:I
      intermediary field_20080 Lnet/minecraft/class_4419;field_20080:I
      named clicks Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;clicks:I
    • warning

      @Nullable private @Nullable Text[] warning
      Mappings:
      Namespace Name Mixin selector
      official ae Ldvk;ae:[Lpz;
      intermediary field_20081 Lnet/minecraft/class_4419;field_20081:[Lnet/minecraft/class_2561;
      named warning Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;warning:[Lnet/minecraft/text/Text;
    • warningURL

      private String warningURL
      Mappings:
      Namespace Name Mixin selector
      official af Ldvk;af:Ljava/lang/String;
      intermediary field_20082 Lnet/minecraft/class_4419;field_20082:Ljava/lang/String;
      named warningURL Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;warningURL:Ljava/lang/String;
    • displayWarning

      boolean displayWarning
      Mappings:
      Namespace Name Mixin selector
      official ag Ldvk;ag:Z
      intermediary field_20083 Lnet/minecraft/class_4419;field_20083:Z
      named displayWarning Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;displayWarning:Z
    • hoverWarning

      private boolean hoverWarning
      Mappings:
      Namespace Name Mixin selector
      official ah Ldvk;ah:Z
      intermediary field_20084 Lnet/minecraft/class_4419;field_20084:Z
      named hoverWarning Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;hoverWarning:Z
    • noTemplatesMessage

      Mappings:
      Namespace Name Mixin selector
      official ai Ldvk;ai:Ljava/util/List;
      intermediary field_20085 Lnet/minecraft/class_4419;field_20085:Ljava/util/List;
      named noTemplatesMessage Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;noTemplatesMessage:Ljava/util/List;
  • Constructor Details

    • RealmsSelectWorldTemplateScreen

      public RealmsSelectWorldTemplateScreen(Text title, Consumer<WorldTemplate> callback, RealmsServer.WorldType worldType)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldvk;<init>(Lpz;Ljava/util/function/Consumer;Ldto$c;)V
      intermediary <init> Lnet/minecraft/class_4419;<init>(Lnet/minecraft/class_2561;Ljava/util/function/Consumer;Lnet/minecraft/class_4877$class_4321;)V
      named <init> Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;<init>(Lnet/minecraft/text/Text;Ljava/util/function/Consumer;Lnet/minecraft/client/realms/dto/RealmsServer$WorldType;)V
    • RealmsSelectWorldTemplateScreen

      public RealmsSelectWorldTemplateScreen(Text title, Consumer<WorldTemplate> callback, RealmsServer.WorldType worldType, @Nullable @Nullable WorldTemplatePaginatedList templateList)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldvk;<init>(Lpz;Ljava/util/function/Consumer;Ldto$c;Lduf;)V
      intermediary <init> Lnet/minecraft/class_4419;<init>(Lnet/minecraft/class_2561;Ljava/util/function/Consumer;Lnet/minecraft/class_4877$class_4321;Lnet/minecraft/class_4891;)V
      named <init> Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;<init>(Lnet/minecraft/text/Text;Ljava/util/function/Consumer;Lnet/minecraft/client/realms/dto/RealmsServer$WorldType;Lnet/minecraft/client/realms/dto/WorldTemplatePaginatedList;)V
  • Method Details

    • setWarning

      public void setWarning(Text[] warning)
      Mappings:
      Namespace Name Mixin selector
      official a Ldvk;a([Lpz;)V
      intermediary method_21429 Lnet/minecraft/class_4419;method_21429([Lnet/minecraft/class_2561;)V
      named setWarning Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;setWarning([Lnet/minecraft/text/Text;)V
    • mouseClicked

      public boolean mouseClicked(double mouseX, double mouseY, int button)
      Callback for when a mouse button down event has been captured. The button number is identified by the constants in GLFW class.
      Parameters:
      mouseX - the X coordinate of the mouse
      mouseY - the Y coordinate of the mouse
      button - the mouse button number
      Returns:
      true to indicate that the event handling is successful/valid
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Ldzy;a(DDI)Z
      intermediary method_25402 Lnet/minecraft/class_364;method_25402(DDI)Z
      named mouseClicked Lnet/minecraft/client/gui/Element;mouseClicked(DDI)Z
    • init

      public void init()
      Called when a screen should be initialized.

      This method is called when this screen is opened or resized.

      Overrides:
      init in class Screen
      Mappings:
      Namespace Name Mixin selector
      official b Lecr;b()V
      intermediary method_25426 Lnet/minecraft/class_437;method_25426()V
      named init Lnet/minecraft/client/gui/screen/Screen;init()V
    • getNarratedTitle

      public Text getNarratedTitle()
      Overrides:
      getNarratedTitle in class Screen
      Mappings:
      Namespace Name Mixin selector
      official ae_ Lecr;ae_()Lpz;
      intermediary method_25435 Lnet/minecraft/class_437;method_25435()Lnet/minecraft/class_2561;
      named getNarratedTitle Lnet/minecraft/client/gui/screen/Screen;getNarratedTitle()Lnet/minecraft/text/Text;
    • updateButtonStates

      void updateButtonStates()
      Mappings:
      Namespace Name Mixin selector
      official v Ldvk;v()V
      intermediary method_21425 Lnet/minecraft/class_4419;method_21425()V
      named updateButtonStates Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;updateButtonStates()V
    • shouldSelectButtonBeActive

      private boolean shouldSelectButtonBeActive()
      Mappings:
      Namespace Name Mixin selector
      official w Ldvk;w()Z
      intermediary method_21430 Lnet/minecraft/class_4419;method_21430()Z
      named shouldSelectButtonBeActive Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;shouldSelectButtonBeActive()Z
    • shouldPublisherBeVisible

      private boolean shouldPublisherBeVisible()
      Mappings:
      Namespace Name Mixin selector
      official x Ldvk;x()Z
      intermediary method_21432 Lnet/minecraft/class_4419;method_21432()Z
      named shouldPublisherBeVisible Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;shouldPublisherBeVisible()Z
    • getSelectedTemplate

      private WorldTemplate getSelectedTemplate()
      Mappings:
      Namespace Name Mixin selector
      official y Ldvk;y()Ldue;
      intermediary method_21434 Lnet/minecraft/class_4419;method_21434()Lnet/minecraft/class_4890;
      named getSelectedTemplate Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;getSelectedTemplate()Lnet/minecraft/client/realms/dto/WorldTemplate;
    • shouldTrailerBeVisible

      private boolean shouldTrailerBeVisible()
      Mappings:
      Namespace Name Mixin selector
      official z Ldvk;z()Z
      intermediary method_21436 Lnet/minecraft/class_4419;method_21436()Z
      named shouldTrailerBeVisible Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;shouldTrailerBeVisible()Z
    • tick

      public void tick()
      Overrides:
      tick in class Screen
      Mappings:
      Namespace Name Mixin selector
      official d Lecr;d()V
      intermediary method_25393 Lnet/minecraft/class_437;method_25393()V
      named tick Lnet/minecraft/client/gui/screen/Screen;tick()V
    • onClose

      public void onClose()
      Overrides:
      onClose in class Screen
      Mappings:
      Namespace Name Mixin selector
      official ag_ Lecr;ag_()V
      intermediary method_25419 Lnet/minecraft/class_437;method_25419()V
      named onClose Lnet/minecraft/client/gui/screen/Screen;onClose()V
    • selectTemplate

      void selectTemplate()
      Mappings:
      Namespace Name Mixin selector
      official A Ldvk;A()V
      intermediary method_21440 Lnet/minecraft/class_4419;method_21440()V
      named selectTemplate Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;selectTemplate()V
    • isSelectionValid

      private boolean isSelectionValid()
      Mappings:
      Namespace Name Mixin selector
      official B Ldvk;B()Z
      intermediary method_25247 Lnet/minecraft/class_4419;method_25247()Z
      named isSelectionValid Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;isSelectionValid()Z
    • onTrailer

      private void onTrailer()
      Mappings:
      Namespace Name Mixin selector
      official C Ldvk;C()V
      intermediary method_21442 Lnet/minecraft/class_4419;method_21442()V
      named onTrailer Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;onTrailer()V
    • onPublish

      private void onPublish()
      Mappings:
      Namespace Name Mixin selector
      official D Ldvk;D()V
      intermediary method_21444 Lnet/minecraft/class_4419;method_21444()V
      named onPublish Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;onPublish()V
    • setPagination

      private void setPagination(WorldTemplatePaginatedList templateList)
      Mappings:
      Namespace Name Mixin selector
      official a Ldvk;a(Lduf;)V
      intermediary method_21415 Lnet/minecraft/class_4419;method_21415(Lnet/minecraft/class_4891;)V
      named setPagination Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;setPagination(Lnet/minecraft/client/realms/dto/WorldTemplatePaginatedList;)V
    • fetchWorldTemplates

      com.mojang.datafixers.util.Either<WorldTemplatePaginatedList,String> fetchWorldTemplates(WorldTemplatePaginatedList templateList, RealmsClient realms)
      Mappings:
      Namespace Name Mixin selector
      official a Ldvk;a(Lduf;Ldsy;)Lcom/mojang/datafixers/util/Either;
      intermediary method_21416 Lnet/minecraft/class_4419;method_21416(Lnet/minecraft/class_4891;Lnet/minecraft/class_4341;)Lcom/mojang/datafixers/util/Either;
      named fetchWorldTemplates Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;fetchWorldTemplates(Lnet/minecraft/client/realms/dto/WorldTemplatePaginatedList;Lnet/minecraft/client/realms/RealmsClient;)Lcom/mojang/datafixers/util/Either;
    • render

      public void render(MatrixStack matrices, int mouseX, int mouseY, float delta)
      Specified by:
      render in interface Drawable
      Overrides:
      render in class Screen
      Mappings:
      Namespace Name Mixin selector
      official a Ldzv;a(Ldsj;IIF)V
      intermediary method_25394 Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_4587;IIF)V
      named render Lnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/util/math/MatrixStack;IIF)V
    • renderMessages

      private void renderMessages(MatrixStack matrices, int x, int y, List<TextRenderingUtils.Line> messages)
      Mappings:
      Namespace Name Mixin selector
      official a Ldvk;a(Ldsj;IILjava/util/List;)V
      intermediary method_21414 Lnet/minecraft/class_4419;method_21414(Lnet/minecraft/class_4587;IILjava/util/List;)V
      named renderMessages Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;renderMessages(Lnet/minecraft/client/util/math/MatrixStack;IILjava/util/List;)V
    • renderMousehoverTooltip

      protected void renderMousehoverTooltip(MatrixStack matrices, @Nullable @Nullable Text tooltip, int mouseX, int mouseY)
      Mappings:
      Namespace Name Mixin selector
      official a Ldvk;a(Ldsj;Lpz;II)V
      intermediary method_21424 Lnet/minecraft/class_4419;method_21424(Lnet/minecraft/class_4587;Lnet/minecraft/class_2561;II)V
      named renderMousehoverTooltip Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;renderMousehoverTooltip(Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/text/Text;II)V