Class WorldListWidget.WorldEntry

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

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

    • field_32435

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

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

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

      private final SelectWorldScreen screen
      Mappings:
      Namespace Name Mixin selector
      official e Lfdj$c;e:Lfde;
      intermediary field_19137 Lnet/minecraft/class_528$class_4272;field_19137:Lnet/minecraft/class_526;
      named screen Lnet/minecraft/client/gui/screen/world/WorldListWidget$WorldEntry;screen:Lnet/minecraft/client/gui/screen/world/SelectWorldScreen;
    • level

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

      private final WorldIcon icon
      Mappings:
      Namespace Name Mixin selector
      official g Lfdj$c;g:Lexp;
      intermediary field_19141 Lnet/minecraft/class_528$class_4272;field_19141:Lnet/minecraft/class_8573;
      named icon Lnet/minecraft/client/gui/screen/world/WorldListWidget$WorldEntry;icon:Lnet/minecraft/client/gui/screen/world/WorldIcon;
    • iconPath

      @Nullable private @Nullable Path iconPath
      Mappings:
      Namespace Name Mixin selector
      official h Lfdj$c;h:Ljava/nio/file/Path;
      intermediary field_19140 Lnet/minecraft/class_528$class_4272;field_19140:Ljava/nio/file/Path;
      named iconPath Lnet/minecraft/client/gui/screen/world/WorldListWidget$WorldEntry;iconPath:Ljava/nio/file/Path;
    • time

      private long time
      Mappings:
      Namespace Name Mixin selector
      official i Lfdj$c;i:J
      intermediary field_19142 Lnet/minecraft/class_528$class_4272;field_19142:J
      named time Lnet/minecraft/client/gui/screen/world/WorldListWidget$WorldEntry;time:J
  • Constructor Details

    • WorldEntry

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

    • validateIconPath

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

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

      public void render(DrawContext context, int index, int y, int x, int entryWidth, int entryHeight, int mouseX, int mouseY, boolean hovered, float tickDelta)
      Renders an entry in a list.
      Specified by:
      render in class EntryListWidget.Entry<WorldListWidget.Entry>
      Parameters:
      index - the index of the entry
      y - the Y coordinate of the entry
      x - the X coordinate of the entry
      entryWidth - the width of the entry
      entryHeight - the height of the entry
      mouseX - the X coordinate of the mouse
      mouseY - the Y coordinate of the mouse
      hovered - whether the mouse is hovering over the entry
      Mappings:
      Namespace Name Mixin selector
      official a Lesl$a;a(Lesf;IIIIIIIZF)V
      intermediary method_25343 Lnet/minecraft/class_350$class_351;method_25343(Lnet/minecraft/class_332;IIIIIIIZF)V
      named render Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;render(Lnet/minecraft/client/gui/DrawContext;IIIIIIIZF)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.
      Specified by:
      mouseClicked in interface Element
      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 Leuk;a(DDI)Z
      intermediary method_25402 Lnet/minecraft/class_364;method_25402(DDI)Z
      named mouseClicked Lnet/minecraft/client/gui/Element;mouseClicked(DDI)Z
    • play

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

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

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

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

      public void recreate()
      Mappings:
      Namespace Name Mixin selector
      official h Lfdj$c;h()V
      intermediary method_20173 Lnet/minecraft/class_528$class_4272;method_20173()V
      named recreate Lnet/minecraft/client/gui/screen/world/WorldListWidget$WorldEntry;recreate()V
    • start

      private void start()
      Mappings:
      Namespace Name Mixin selector
      official k Lfdj$c;k()V
      intermediary method_20174 Lnet/minecraft/class_528$class_4272;method_20174()V
      named start Lnet/minecraft/client/gui/screen/world/WorldListWidget$WorldEntry;start()V
    • openReadingWorldScreen

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

      private void loadIcon()
      Mappings:
      Namespace Name Mixin selector
      official m Lfdj$c;m()V
      intermediary method_52205 Lnet/minecraft/class_528$class_4272;method_52205()V
      named loadIcon Lnet/minecraft/client/gui/screen/world/WorldListWidget$WorldEntry;loadIcon()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
      official i Lfdj$c;i()Ljava/lang/String;
      intermediary method_35740 Lnet/minecraft/class_528$class_4272;method_35740()Ljava/lang/String;
      named getLevelDisplayName Lnet/minecraft/client/gui/screen/world/WorldListWidget$WorldEntry;getLevelDisplayName()Ljava/lang/String;
    • isAvailable

      public boolean isAvailable()
      Specified by:
      isAvailable in class WorldListWidget.Entry
      Mappings:
      Namespace Name Mixin selector
      official b Lfdj$a;b()Z
      intermediary method_43465 Lnet/minecraft/class_528$class_7414;method_43465()Z
      named isAvailable Lnet/minecraft/client/gui/screen/world/WorldListWidget$Entry;isAvailable()Z