Class WorldListWidget.WorldEntry

All Implemented Interfaces:
AutoCloseable, Element, Narratable, Navigable, Widget
Enclosing class:
WorldListWidget

@Environment(CLIENT) public static final class WorldListWidget.WorldEntry extends WorldListWidget.Entry
Mappings:
Namespace Name
named net/minecraft/client/gui/screen/world/WorldListWidget$WorldEntry
intermediary net/minecraft/class_528$class_4272
official gvv$f
  • Field Details

    • field_32435

      private static final int field_32435
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_32435 Lnet/minecraft/client/gui/screen/world/WorldListWidget$WorldEntry;field_32435:I
      intermediary field_32435 Lnet/minecraft/class_528$class_4272;field_32435:I
      official a Lgvv$f;a:I
    • field_32436

      private static final int field_32436
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_32436 Lnet/minecraft/client/gui/screen/world/WorldListWidget$WorldEntry;field_32436:I
      intermediary field_32436 Lnet/minecraft/class_528$class_4272;field_32436:I
      official b Lgvv$f;b:I
    • parent

      private final WorldListWidget parent
      Mappings:
      Namespace Name Mixin selector
      named parent Lnet/minecraft/client/gui/screen/world/WorldListWidget$WorldEntry;parent:Lnet/minecraft/client/gui/screen/world/WorldListWidget;
      intermediary field_62205 Lnet/minecraft/class_528$class_4272;field_62205:Lnet/minecraft/class_528;
      official c Lgvv$f;c:Lgvv;
    • client

      private final MinecraftClient client
      Mappings:
      Namespace Name Mixin selector
      named client Lnet/minecraft/client/gui/screen/world/WorldListWidget$WorldEntry;client:Lnet/minecraft/client/MinecraftClient;
      intermediary field_19136 Lnet/minecraft/class_528$class_4272;field_19136:Lnet/minecraft/class_310;
      official d Lgvv$f;d:Lgcx;
    • screen

      private final Screen screen
      Mappings:
      Namespace Name Mixin selector
      named screen Lnet/minecraft/client/gui/screen/world/WorldListWidget$WorldEntry;screen:Lnet/minecraft/client/gui/screen/Screen;
      intermediary field_19137 Lnet/minecraft/class_528$class_4272;field_19137:Lnet/minecraft/class_437;
      official e Lgvv$f;e:Lgpn;
    • level

      final LevelSummary level
      Mappings:
      Namespace Name Mixin selector
      named level Lnet/minecraft/client/gui/screen/world/WorldListWidget$WorldEntry;level:Lnet/minecraft/world/level/storage/LevelSummary;
      intermediary field_19138 Lnet/minecraft/class_528$class_4272;field_19138:Lnet/minecraft/class_34;
      official f Lgvv$f;f:Lfld;
    • icon

      private final WorldIcon icon
      Mappings:
      Namespace Name Mixin selector
      named icon Lnet/minecraft/client/gui/screen/world/WorldListWidget$WorldEntry;icon:Lnet/minecraft/client/gui/screen/world/WorldIcon;
      intermediary field_19141 Lnet/minecraft/class_528$class_4272;field_19141:Lnet/minecraft/class_8573;
      official g Lgvv$f;g:Lgox;
    • displayNameWidget

      private final TextWidget displayNameWidget
      Mappings:
      Namespace Name Mixin selector
      named displayNameWidget Lnet/minecraft/client/gui/screen/world/WorldListWidget$WorldEntry;displayNameWidget:Lnet/minecraft/client/gui/widget/TextWidget;
      intermediary field_62206 Lnet/minecraft/class_528$class_4272;field_62206:Lnet/minecraft/class_7842;
      official i Lgvv$f;i:Lgia;
    • nameWidget

      private final TextWidget nameWidget
      Mappings:
      Namespace Name Mixin selector
      named nameWidget Lnet/minecraft/client/gui/screen/world/WorldListWidget$WorldEntry;nameWidget:Lnet/minecraft/client/gui/widget/TextWidget;
      intermediary field_62207 Lnet/minecraft/class_528$class_4272;field_62207:Lnet/minecraft/class_7842;
      official j Lgvv$f;j:Lgia;
    • detailsWidget

      private final TextWidget detailsWidget
      Mappings:
      Namespace Name Mixin selector
      named detailsWidget Lnet/minecraft/client/gui/screen/world/WorldListWidget$WorldEntry;detailsWidget:Lnet/minecraft/client/gui/widget/TextWidget;
      intermediary field_62208 Lnet/minecraft/class_528$class_4272;field_62208:Lnet/minecraft/class_7842;
      official k Lgvv$f;k:Lgia;
    • iconPath

      @Nullable private @Nullable Path iconPath
      Mappings:
      Namespace Name Mixin selector
      named iconPath Lnet/minecraft/client/gui/screen/world/WorldListWidget$WorldEntry;iconPath:Ljava/nio/file/Path;
      intermediary field_19140 Lnet/minecraft/class_528$class_4272;field_19140:Ljava/nio/file/Path;
      official l Lgvv$f;l:Ljava/nio/file/Path;
  • Constructor Details

    • WorldEntry

      public WorldEntry(WorldListWidget parent, LevelSummary summary)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/gui/screen/world/WorldListWidget$WorldEntry;<init>(Lnet/minecraft/client/gui/screen/world/WorldListWidget;Lnet/minecraft/world/level/storage/LevelSummary;)V
      intermediary <init> Lnet/minecraft/class_528$class_4272;<init>(Lnet/minecraft/class_528;Lnet/minecraft/class_34;)V
      official <init> Lgvv$f;<init>(Lgvv;Lfld;)V
  • Method Details

    • validateIconPath

      private void validateIconPath()
      Mappings:
      Namespace Name Mixin selector
      named validateIconPath Lnet/minecraft/client/gui/screen/world/WorldListWidget$WorldEntry;validateIconPath()V
      intermediary method_52265 Lnet/minecraft/class_528$class_4272;method_52265()V
      official x Lgvv$f;x()V
    • getNarration

      public Text getNarration()
      Specified by:
      getNarration in class AlwaysSelectedEntryListWidget.Entry<WorldListWidget.Entry>
      Mappings:
      Namespace Name Mixin selector
      named getNarration Lnet/minecraft/client/gui/widget/AlwaysSelectedEntryListWidget$Entry;getNarration()Lnet/minecraft/text/Text;
      intermediary method_37006 Lnet/minecraft/class_4280$class_4281;method_37006()Lnet/minecraft/class_2561;
      official a Lghn$a;a()Lym;
    • render

      public void render(DrawContext context, int mouseX, int mouseY, boolean hovered, float deltaTicks)
      Renders an entry in a list.
      Specified by:
      render in class EntryListWidget.Entry<WorldListWidget.Entry>
      Mappings:
      Namespace Name Mixin selector
      named render Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;render(Lnet/minecraft/client/gui/DrawContext;IIZF)V
      intermediary method_25343 Lnet/minecraft/class_350$class_351;method_25343(Lnet/minecraft/class_332;IIZF)V
      official a Lggk$a;a(Lggd;IIZF)V
    • getTextX

      private int getTextX()
      Mappings:
      Namespace Name Mixin selector
      named getTextX Lnet/minecraft/client/gui/screen/world/WorldListWidget$WorldEntry;getTextX()I
      intermediary method_73466 Lnet/minecraft/class_528$class_4272;method_73466()I
      official y Lgvv$f;y()I
    • mouseClicked

      public boolean mouseClicked(Click click, boolean doubled)
      Callback for when a mouse button down event has been captured. The button number is identified by the constants in GLFW class.
      Specified by:
      mouseClicked in interface Element
      Overrides:
      mouseClicked in class AlwaysSelectedEntryListWidget.Entry<WorldListWidget.Entry>
      Returns:
      true to indicate that the event handling is successful/valid
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named mouseClicked Lnet/minecraft/client/gui/Element;mouseClicked(Lnet/minecraft/client/gui/Click;Z)Z
      intermediary method_25402 Lnet/minecraft/class_364;method_25402(Lnet/minecraft/class_11909;Z)Z
      official a Lgjy;a(Lgwm;Z)Z
    • keyPressed

      public boolean keyPressed(KeyInput input)
      Callback for when a key down event has been captured. The key code is identified by the constants in GLFW class.
      Returns:
      true to indicate that the event handling is successful/valid
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named keyPressed Lnet/minecraft/client/gui/Element;keyPressed(Lnet/minecraft/client/input/KeyInput;)Z
      intermediary method_25404 Lnet/minecraft/class_364;method_25404(Lnet/minecraft/class_11908;)Z
      official a Lgjy;a(Lgwl;)Z
    • allowConfirmationByKeyboard

      public boolean allowConfirmationByKeyboard()
      Mappings:
      Namespace Name Mixin selector
      named allowConfirmationByKeyboard Lnet/minecraft/client/gui/screen/world/WorldListWidget$WorldEntry;allowConfirmationByKeyboard()Z
      intermediary method_73465 Lnet/minecraft/class_528$class_4272;method_73465()Z
      official c Lgvv$f;c()Z
    • play

      public void play()
      Mappings:
      Namespace Name Mixin selector
      named play Lnet/minecraft/client/gui/screen/world/WorldListWidget$WorldEntry;play()V
      intermediary method_20164 Lnet/minecraft/class_528$class_4272;method_20164()V
      official e Lgvv$f;e()V
    • deleteIfConfirmed

      public void deleteIfConfirmed()
      Mappings:
      Namespace Name Mixin selector
      named deleteIfConfirmed Lnet/minecraft/client/gui/screen/world/WorldListWidget$WorldEntry;deleteIfConfirmed()V
      intermediary method_20169 Lnet/minecraft/class_528$class_4272;method_20169()V
      official f Lgvv$f;f()V
    • delete

      public void delete()
      Mappings:
      Namespace Name Mixin selector
      named delete Lnet/minecraft/client/gui/screen/world/WorldListWidget$WorldEntry;delete()V
      intermediary method_33685 Lnet/minecraft/class_528$class_4272;method_33685()V
      official t Lgvv$f;t()V
    • edit

      public void edit()
      Mappings:
      Namespace Name Mixin selector
      named edit Lnet/minecraft/client/gui/screen/world/WorldListWidget$WorldEntry;edit()V
      intermediary method_20171 Lnet/minecraft/class_528$class_4272;method_20171()V
      official u Lgvv$f;u()V
    • recreate

      public void recreate()
      Mappings:
      Namespace Name Mixin selector
      named recreate Lnet/minecraft/client/gui/screen/world/WorldListWidget$WorldEntry;recreate()V
      intermediary method_20173 Lnet/minecraft/class_528$class_4272;method_20173()V
      official v Lgvv$f;v()V
    • openReadingWorldScreen

      private void openReadingWorldScreen()
      Mappings:
      Namespace Name Mixin selector
      named openReadingWorldScreen Lnet/minecraft/client/gui/screen/world/WorldListWidget$WorldEntry;openReadingWorldScreen()V
      intermediary method_29990 Lnet/minecraft/class_528$class_4272;method_29990()V
      official z Lgvv$f;z()V
    • loadIcon

      private void loadIcon()
      Mappings:
      Namespace Name Mixin selector
      named loadIcon Lnet/minecraft/client/gui/screen/world/WorldListWidget$WorldEntry;loadIcon()V
      intermediary method_52205 Lnet/minecraft/class_528$class_4272;method_52205()V
      official B Lgvv$f;B()V
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Overrides:
      close in class WorldListWidget.Entry
    • getLevelDisplayName

      public String getLevelDisplayName()
      Mappings:
      Namespace Name Mixin selector
      named getLevelDisplayName Lnet/minecraft/client/gui/screen/world/WorldListWidget$WorldEntry;getLevelDisplayName()Ljava/lang/String;
      intermediary method_35740 Lnet/minecraft/class_528$class_4272;method_35740()Ljava/lang/String;
      official w Lgvv$f;w()Ljava/lang/String;
    • getLevel

      public LevelSummary getLevel()
      Overrides:
      getLevel in class WorldListWidget.Entry
      Mappings:
      Namespace Name Mixin selector
      named getLevel Lnet/minecraft/client/gui/screen/world/WorldListWidget$Entry;getLevel()Lnet/minecraft/world/level/storage/LevelSummary;
      intermediary method_73463 Lnet/minecraft/class_528$class_7414;method_73463()Lnet/minecraft/class_34;
      official b Lgvv$b;b()Lfld;