Class WorldListWidget

All Implemented Interfaces:
Drawable, Element, Narratable, Navigable, ParentElement, Selectable, Widget

Mappings:
Namespace Name
official fic
intermediary net/minecraft/class_528
named net/minecraft/client/gui/screen/world/WorldListWidget
  • Field Details

    • DATE_FORMAT

      public static final DateTimeFormatter DATE_FORMAT
      Mappings:
      Namespace Name Mixin selector
      official a Lfic;a:Ljava/time/format/DateTimeFormatter;
      intermediary field_19132 Lnet/minecraft/class_528;field_19132:Ljava/time/format/DateTimeFormatter;
      named DATE_FORMAT Lnet/minecraft/client/gui/screen/world/WorldListWidget;DATE_FORMAT:Ljava/time/format/DateTimeFormatter;
    • ERROR_HIGHLIGHTED_TEXTURE

      static final Identifier ERROR_HIGHLIGHTED_TEXTURE
      Mappings:
      Namespace Name Mixin selector
      official m Lfic;m:Lahg;
      intermediary field_45570 Lnet/minecraft/class_528;field_45570:Lnet/minecraft/class_2960;
      named ERROR_HIGHLIGHTED_TEXTURE Lnet/minecraft/client/gui/screen/world/WorldListWidget;ERROR_HIGHLIGHTED_TEXTURE:Lnet/minecraft/util/Identifier;
    • ERROR_TEXTURE

      static final Identifier ERROR_TEXTURE
      Mappings:
      Namespace Name Mixin selector
      official n Lfic;n:Lahg;
      intermediary field_45571 Lnet/minecraft/class_528;field_45571:Lnet/minecraft/class_2960;
      named ERROR_TEXTURE Lnet/minecraft/client/gui/screen/world/WorldListWidget;ERROR_TEXTURE:Lnet/minecraft/util/Identifier;
    • MARKED_JOIN_HIGHLIGHTED_TEXTURE

      static final Identifier MARKED_JOIN_HIGHLIGHTED_TEXTURE
      Mappings:
      Namespace Name Mixin selector
      official o Lfic;o:Lahg;
      intermediary field_45572 Lnet/minecraft/class_528;field_45572:Lnet/minecraft/class_2960;
      named MARKED_JOIN_HIGHLIGHTED_TEXTURE Lnet/minecraft/client/gui/screen/world/WorldListWidget;MARKED_JOIN_HIGHLIGHTED_TEXTURE:Lnet/minecraft/util/Identifier;
    • MARKED_JOIN_TEXTURE

      static final Identifier MARKED_JOIN_TEXTURE
      Mappings:
      Namespace Name Mixin selector
      official p Lfic;p:Lahg;
      intermediary field_45573 Lnet/minecraft/class_528;field_45573:Lnet/minecraft/class_2960;
      named MARKED_JOIN_TEXTURE Lnet/minecraft/client/gui/screen/world/WorldListWidget;MARKED_JOIN_TEXTURE:Lnet/minecraft/util/Identifier;
    • WARNING_HIGHLIGHTED_TEXTURE

      static final Identifier WARNING_HIGHLIGHTED_TEXTURE
      Mappings:
      Namespace Name Mixin selector
      official q Lfic;q:Lahg;
      intermediary field_45574 Lnet/minecraft/class_528;field_45574:Lnet/minecraft/class_2960;
      named WARNING_HIGHLIGHTED_TEXTURE Lnet/minecraft/client/gui/screen/world/WorldListWidget;WARNING_HIGHLIGHTED_TEXTURE:Lnet/minecraft/util/Identifier;
    • WARNING_TEXTURE

      static final Identifier WARNING_TEXTURE
      Mappings:
      Namespace Name Mixin selector
      official r Lfic;r:Lahg;
      intermediary field_45575 Lnet/minecraft/class_528;field_45575:Lnet/minecraft/class_2960;
      named WARNING_TEXTURE Lnet/minecraft/client/gui/screen/world/WorldListWidget;WARNING_TEXTURE:Lnet/minecraft/util/Identifier;
    • JOIN_HIGHLIGHTED_TEXTURE

      static final Identifier JOIN_HIGHLIGHTED_TEXTURE
      Mappings:
      Namespace Name Mixin selector
      official t Lfic;t:Lahg;
      intermediary field_45576 Lnet/minecraft/class_528;field_45576:Lnet/minecraft/class_2960;
      named JOIN_HIGHLIGHTED_TEXTURE Lnet/minecraft/client/gui/screen/world/WorldListWidget;JOIN_HIGHLIGHTED_TEXTURE:Lnet/minecraft/util/Identifier;
    • JOIN_TEXTURE

      static final Identifier JOIN_TEXTURE
      Mappings:
      Namespace Name Mixin selector
      official u Lfic;u:Lahg;
      intermediary field_45577 Lnet/minecraft/class_528;field_45577:Lnet/minecraft/class_2960;
      named JOIN_TEXTURE Lnet/minecraft/client/gui/screen/world/WorldListWidget;JOIN_TEXTURE:Lnet/minecraft/util/Identifier;
    • LOGGER

      static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official v Lfic;v:Lorg/slf4j/Logger;
      intermediary field_3238 Lnet/minecraft/class_528;field_3238:Lorg/slf4j/Logger;
      named LOGGER Lnet/minecraft/client/gui/screen/world/WorldListWidget;LOGGER:Lorg/slf4j/Logger;
    • UNKNOWN_SERVER_LOCATION

      private static final Identifier UNKNOWN_SERVER_LOCATION
      Mappings:
      Namespace Name Mixin selector
      official w Lfic;w:Lahg;
      intermediary field_19133 Lnet/minecraft/class_528;field_19133:Lnet/minecraft/class_2960;
      named UNKNOWN_SERVER_LOCATION Lnet/minecraft/client/gui/screen/world/WorldListWidget;UNKNOWN_SERVER_LOCATION:Lnet/minecraft/util/Identifier;
    • FROM_NEWER_VERSION_FIRST_LINE

      static final Text FROM_NEWER_VERSION_FIRST_LINE
      Mappings:
      Namespace Name Mixin selector
      official x Lfic;x:Lvf;
      intermediary field_26606 Lnet/minecraft/class_528;field_26606:Lnet/minecraft/class_2561;
      named FROM_NEWER_VERSION_FIRST_LINE Lnet/minecraft/client/gui/screen/world/WorldListWidget;FROM_NEWER_VERSION_FIRST_LINE:Lnet/minecraft/text/Text;
    • FROM_NEWER_VERSION_SECOND_LINE

      static final Text FROM_NEWER_VERSION_SECOND_LINE
      Mappings:
      Namespace Name Mixin selector
      official y Lfic;y:Lvf;
      intermediary field_26607 Lnet/minecraft/class_528;field_26607:Lnet/minecraft/class_2561;
      named FROM_NEWER_VERSION_SECOND_LINE Lnet/minecraft/client/gui/screen/world/WorldListWidget;FROM_NEWER_VERSION_SECOND_LINE:Lnet/minecraft/text/Text;
    • SNAPSHOT_FIRST_LINE

      static final Text SNAPSHOT_FIRST_LINE
      Mappings:
      Namespace Name Mixin selector
      official z Lfic;z:Lvf;
      intermediary field_26608 Lnet/minecraft/class_528;field_26608:Lnet/minecraft/class_2561;
      named SNAPSHOT_FIRST_LINE Lnet/minecraft/client/gui/screen/world/WorldListWidget;SNAPSHOT_FIRST_LINE:Lnet/minecraft/text/Text;
    • SNAPSHOT_SECOND_LINE

      static final Text SNAPSHOT_SECOND_LINE
      Mappings:
      Namespace Name Mixin selector
      official A Lfic;A:Lvf;
      intermediary field_26609 Lnet/minecraft/class_528;field_26609:Lnet/minecraft/class_2561;
      named SNAPSHOT_SECOND_LINE Lnet/minecraft/client/gui/screen/world/WorldListWidget;SNAPSHOT_SECOND_LINE:Lnet/minecraft/text/Text;
    • LOCKED_TEXT

      static final Text LOCKED_TEXT
      Mappings:
      Namespace Name Mixin selector
      official B Lfic;B:Lvf;
      intermediary field_26610 Lnet/minecraft/class_528;field_26610:Lnet/minecraft/class_2561;
      named LOCKED_TEXT Lnet/minecraft/client/gui/screen/world/WorldListWidget;LOCKED_TEXT:Lnet/minecraft/text/Text;
    • CONVERSION_TOOLTIP

      static final Text CONVERSION_TOOLTIP
      Mappings:
      Namespace Name Mixin selector
      official C Lfic;C:Lvf;
      intermediary field_34803 Lnet/minecraft/class_528;field_34803:Lnet/minecraft/class_2561;
      named CONVERSION_TOOLTIP Lnet/minecraft/client/gui/screen/world/WorldListWidget;CONVERSION_TOOLTIP:Lnet/minecraft/text/Text;
    • INCOMPATIBLE_TOOLTIP

      static final Text INCOMPATIBLE_TOOLTIP
      Mappings:
      Namespace Name Mixin selector
      official D Lfic;D:Lvf;
      intermediary field_46897 Lnet/minecraft/class_528;field_46897:Lnet/minecraft/class_2561;
      named INCOMPATIBLE_TOOLTIP Lnet/minecraft/client/gui/screen/world/WorldListWidget;INCOMPATIBLE_TOOLTIP:Lnet/minecraft/text/Text;
    • EXPERIMENTAL_TEXT

      static final Text EXPERIMENTAL_TEXT
      Mappings:
      Namespace Name Mixin selector
      official E Lfic;E:Lvf;
      intermediary field_45569 Lnet/minecraft/class_528;field_45569:Lnet/minecraft/class_2561;
      named EXPERIMENTAL_TEXT Lnet/minecraft/client/gui/screen/world/WorldListWidget;EXPERIMENTAL_TEXT:Lnet/minecraft/text/Text;
    • parent

      private final SelectWorldScreen parent
      Mappings:
      Namespace Name Mixin selector
      official F Lfic;F:Lfhx;
      intermediary field_3237 Lnet/minecraft/class_528;field_3237:Lnet/minecraft/class_526;
      named parent Lnet/minecraft/client/gui/screen/world/WorldListWidget;parent:Lnet/minecraft/client/gui/screen/world/SelectWorldScreen;
    • levelsFuture

      private CompletableFuture<List<LevelSummary>> levelsFuture
      Mappings:
      Namespace Name Mixin selector
      official G Lfic;G:Ljava/util/concurrent/CompletableFuture;
      intermediary field_39739 Lnet/minecraft/class_528;field_39739:Ljava/util/concurrent/CompletableFuture;
      named levelsFuture Lnet/minecraft/client/gui/screen/world/WorldListWidget;levelsFuture:Ljava/util/concurrent/CompletableFuture;
    • levels

      Mappings:
      Namespace Name Mixin selector
      official H Lfic;H:Ljava/util/List;
      intermediary field_39740 Lnet/minecraft/class_528;field_39740:Ljava/util/List;
      named levels Lnet/minecraft/client/gui/screen/world/WorldListWidget;levels:Ljava/util/List;
    • loadingEntry

      private final WorldListWidget.LoadingEntry loadingEntry
      Mappings:
      Namespace Name Mixin selector
      official J Lfic;J:Lfic$b;
      intermediary field_38994 Lnet/minecraft/class_528;field_38994:Lnet/minecraft/class_528$class_7415;
      named loadingEntry Lnet/minecraft/client/gui/screen/world/WorldListWidget;loadingEntry:Lnet/minecraft/client/gui/screen/world/WorldListWidget$LoadingEntry;
  • Constructor Details

    • WorldListWidget

      public WorldListWidget(SelectWorldScreen parent, MinecraftClient client, int width, int height, int y, int itemHeight, String search, @Nullable @Nullable WorldListWidget oldWidget)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lfic;<init>(Lfhx;Levi;IIIILjava/lang/String;Lfic;)V
      intermediary <init> Lnet/minecraft/class_528;<init>(Lnet/minecraft/class_526;Lnet/minecraft/class_310;IIIILjava/lang/String;Lnet/minecraft/class_528;)V
      named <init> Lnet/minecraft/client/gui/screen/world/WorldListWidget;<init>(Lnet/minecraft/client/gui/screen/world/SelectWorldScreen;Lnet/minecraft/client/MinecraftClient;IIIILjava/lang/String;Lnet/minecraft/client/gui/screen/world/WorldListWidget;)V
  • Method Details

    • clearEntries

      protected void clearEntries()
      Overrides:
      clearEntries in class EntryListWidget<WorldListWidget.Entry>
      Mappings:
      Namespace Name Mixin selector
      official m Lexb;m()V
      intermediary method_25339 Lnet/minecraft/class_350;method_25339()V
      named clearEntries Lnet/minecraft/client/gui/widget/EntryListWidget;clearEntries()V
    • tryGet

      @Nullable private @Nullable List<LevelSummary> tryGet()
      Mappings:
      Namespace Name Mixin selector
      official H Lfic;H()Ljava/util/List;
      intermediary method_44679 Lnet/minecraft/class_528;method_44679()Ljava/util/List;
      named tryGet Lnet/minecraft/client/gui/screen/world/WorldListWidget;tryGet()Ljava/util/List;
    • load

      void load()
      Mappings:
      Namespace Name Mixin selector
      official I Lfic;I()V
      intermediary method_44680 Lnet/minecraft/class_528;method_44680()V
      named load Lnet/minecraft/client/gui/screen/world/WorldListWidget;load()V
    • keyPressed

      public boolean keyPressed(int keyCode, int scanCode, int modifiers)
      Callback for when a key down event has been captured. The key code is identified by the constants in GLFW class.
      Parameters:
      keyCode - the named key code of the event as described in the GLFW class
      scanCode - the unique/platform-specific scan code of the keyboard input
      modifiers - a GLFW bitfield describing the modifier keys that are held down (see GLFW Modifier key flags)
      Returns:
      true to indicate that the event handling is successful/valid
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lezb;a(III)Z
      intermediary method_25404 Lnet/minecraft/class_364;method_25404(III)Z
      named keyPressed Lnet/minecraft/client/gui/Element;keyPressed(III)Z
    • renderWidget

      public void renderWidget(DrawContext context, int mouseX, int mouseY, float delta)
      Overrides:
      renderWidget in class EntryListWidget<WorldListWidget.Entry>
      Mappings:
      Namespace Name Mixin selector
      official b Lexe;b(Lewu;IIF)V
      intermediary method_48579 Lnet/minecraft/class_339;method_48579(Lnet/minecraft/class_332;IIF)V
      named renderWidget Lnet/minecraft/client/gui/widget/ClickableWidget;renderWidget(Lnet/minecraft/client/gui/DrawContext;IIF)V
    • show

      private void show(@Nullable @Nullable List<LevelSummary> levels)
      Mappings:
      Namespace Name Mixin selector
      official a Lfic;a(Ljava/util/List;)V
      intermediary method_44678 Lnet/minecraft/class_528;method_44678(Ljava/util/List;)V
      named show Lnet/minecraft/client/gui/screen/world/WorldListWidget;show(Ljava/util/List;)V
    • setSearch

      public void setSearch(String search)
      Mappings:
      Namespace Name Mixin selector
      official a Lfic;a(Ljava/lang/String;)V
      intermediary method_44677 Lnet/minecraft/class_528;method_44677(Ljava/lang/String;)V
      named setSearch Lnet/minecraft/client/gui/screen/world/WorldListWidget;setSearch(Ljava/lang/String;)V
    • loadLevels

      private CompletableFuture<List<LevelSummary>> loadLevels()
      Mappings:
      Namespace Name Mixin selector
      official J Lfic;J()Ljava/util/concurrent/CompletableFuture;
      intermediary method_43462 Lnet/minecraft/class_528;method_43462()Ljava/util/concurrent/CompletableFuture;
      named loadLevels Lnet/minecraft/client/gui/screen/world/WorldListWidget;loadLevels()Ljava/util/concurrent/CompletableFuture;
    • showSummaries

      private void showSummaries(String search, List<LevelSummary> summaries)
      Mappings:
      Namespace Name Mixin selector
      official a Lfic;a(Ljava/lang/String;Ljava/util/List;)V
      intermediary method_43454 Lnet/minecraft/class_528;method_43454(Ljava/lang/String;Ljava/util/List;)V
      named showSummaries Lnet/minecraft/client/gui/screen/world/WorldListWidget;showSummaries(Ljava/lang/String;Ljava/util/List;)V
    • shouldShow

      private boolean shouldShow(String search, LevelSummary summary)
      Mappings:
      Namespace Name Mixin selector
      official a Lfic;a(Ljava/lang/String;Legn;)Z
      intermediary method_43453 Lnet/minecraft/class_528;method_43453(Ljava/lang/String;Lnet/minecraft/class_34;)Z
      named shouldShow Lnet/minecraft/client/gui/screen/world/WorldListWidget;shouldShow(Ljava/lang/String;Lnet/minecraft/world/level/storage/LevelSummary;)Z
    • showLoadingScreen

      private void showLoadingScreen()
      Mappings:
      Namespace Name Mixin selector
      official K Lfic;K()V
      intermediary method_43463 Lnet/minecraft/class_528;method_43463()V
      named showLoadingScreen Lnet/minecraft/client/gui/screen/world/WorldListWidget;showLoadingScreen()V
    • narrateScreenIfNarrationEnabled

      private void narrateScreenIfNarrationEnabled()
      Mappings:
      Namespace Name Mixin selector
      official L Lfic;L()V
      intermediary method_43464 Lnet/minecraft/class_528;method_43464()V
      named narrateScreenIfNarrationEnabled Lnet/minecraft/client/gui/screen/world/WorldListWidget;narrateScreenIfNarrationEnabled()V
    • showUnableToLoadScreen

      private void showUnableToLoadScreen(Text message)
      Mappings:
      Namespace Name Mixin selector
      official c Lfic;c(Lvf;)V
      intermediary method_43460 Lnet/minecraft/class_528;method_43460(Lnet/minecraft/class_2561;)V
      named showUnableToLoadScreen Lnet/minecraft/client/gui/screen/world/WorldListWidget;showUnableToLoadScreen(Lnet/minecraft/text/Text;)V
    • getScrollbarPositionX

      protected int getScrollbarPositionX()
      Overrides:
      getScrollbarPositionX in class EntryListWidget<WorldListWidget.Entry>
      Mappings:
      Namespace Name Mixin selector
      official c Lexb;c()I
      intermediary method_25329 Lnet/minecraft/class_350;method_25329()I
      named getScrollbarPositionX Lnet/minecraft/client/gui/widget/EntryListWidget;getScrollbarPositionX()I
    • getRowWidth

      public int getRowWidth()
      Overrides:
      getRowWidth in class EntryListWidget<WorldListWidget.Entry>
      Mappings:
      Namespace Name Mixin selector
      official b Lexb;b()I
      intermediary method_25322 Lnet/minecraft/class_350;method_25322()I
      named getRowWidth Lnet/minecraft/client/gui/widget/EntryListWidget;getRowWidth()I
    • setSelected

      public void setSelected(@Nullable @Nullable WorldListWidget.Entry entry)
      Overrides:
      setSelected in class EntryListWidget<WorldListWidget.Entry>
      Mappings:
      Namespace Name Mixin selector
      official a Lfic;a(Lfic$a;)V
      intermediary method_20157 Lnet/minecraft/class_528;method_20157(Lnet/minecraft/class_528$class_7414;)V
      named setSelected Lnet/minecraft/client/gui/screen/world/WorldListWidget;setSelected(Lnet/minecraft/client/gui/screen/world/WorldListWidget$Entry;)V
    • getSelectedAsOptional

      public Optional<WorldListWidget.WorldEntry> getSelectedAsOptional()
      Mappings:
      Namespace Name Mixin selector
      official d Lfic;d()Ljava/util/Optional;
      intermediary method_20159 Lnet/minecraft/class_528;method_20159()Ljava/util/Optional;
      named getSelectedAsOptional Lnet/minecraft/client/gui/screen/world/WorldListWidget;getSelectedAsOptional()Ljava/util/Optional;
    • getParent

      public SelectWorldScreen getParent()
      Mappings:
      Namespace Name Mixin selector
      official e Lfic;e()Lfhx;
      intermediary method_2752 Lnet/minecraft/class_528;method_2752()Lnet/minecraft/class_526;
      named getParent Lnet/minecraft/client/gui/screen/world/WorldListWidget;getParent()Lnet/minecraft/client/gui/screen/world/SelectWorldScreen;
    • appendClickableNarrations

      public void appendClickableNarrations(NarrationMessageBuilder builder)
      Overrides:
      appendClickableNarrations in class AlwaysSelectedEntryListWidget<WorldListWidget.Entry>
      Mappings:
      Namespace Name Mixin selector
      official a Lexe;a(Lfaz;)V
      intermediary method_47399 Lnet/minecraft/class_339;method_47399(Lnet/minecraft/class_6382;)V
      named appendClickableNarrations Lnet/minecraft/client/gui/widget/ClickableWidget;appendClickableNarrations(Lnet/minecraft/client/gui/screen/narration/NarrationMessageBuilder;)V