Class WorldListWidget.Entry

All Implemented Interfaces:
AutoCloseable, Element
Enclosing class:
WorldListWidget

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

    • client

      private final MinecraftClient client
      Mappings:
      Namespace Name Mixin selector
      official b Ldza$a;b:Ldqk;
      intermediary field_19136 Lnet/minecraft/class_528$class_4272;field_19136:Lnet/minecraft/class_310;
      named client Lnet/minecraft/client/gui/screen/world/WorldListWidget$Entry;client:Lnet/minecraft/client/MinecraftClient;
    • screen

      private final SelectWorldScreen screen
      Mappings:
      Namespace Name Mixin selector
      official c Ldza$a;c:Ldyx;
      intermediary field_19137 Lnet/minecraft/class_528$class_4272;field_19137:Lnet/minecraft/class_526;
      named screen Lnet/minecraft/client/gui/screen/world/WorldListWidget$Entry;screen:Lnet/minecraft/client/gui/screen/world/SelectWorldScreen;
    • level

      private final LevelSummary level
      Mappings:
      Namespace Name Mixin selector
      official d Ldza$a;d:Lddv;
      intermediary field_19138 Lnet/minecraft/class_528$class_4272;field_19138:Lnet/minecraft/class_34;
      named level Lnet/minecraft/client/gui/screen/world/WorldListWidget$Entry;level:Lnet/minecraft/world/level/storage/LevelSummary;
    • iconLocation

      private final Identifier iconLocation
      Mappings:
      Namespace Name Mixin selector
      official e Ldza$a;e:Lwb;
      intermediary field_19139 Lnet/minecraft/class_528$class_4272;field_19139:Lnet/minecraft/class_2960;
      named iconLocation Lnet/minecraft/client/gui/screen/world/WorldListWidget$Entry;iconLocation:Lnet/minecraft/util/Identifier;
    • iconFile

      private File iconFile
      Mappings:
      Namespace Name Mixin selector
      official f Ldza$a;f:Ljava/io/File;
      intermediary field_19140 Lnet/minecraft/class_528$class_4272;field_19140:Ljava/io/File;
      named iconFile Lnet/minecraft/client/gui/screen/world/WorldListWidget$Entry;iconFile:Ljava/io/File;
    • icon

      @Nullable private final NativeImageBackedTexture icon
      Mappings:
      Namespace Name Mixin selector
      official g Ldza$a;g:Lerk;
      intermediary field_19141 Lnet/minecraft/class_528$class_4272;field_19141:Lnet/minecraft/class_1043;
      named icon Lnet/minecraft/client/gui/screen/world/WorldListWidget$Entry;icon:Lnet/minecraft/client/texture/NativeImageBackedTexture;
    • time

      private long time
      Mappings:
      Namespace Name Mixin selector
      official h Ldza$a;h:J
      intermediary field_19142 Lnet/minecraft/class_528$class_4272;field_19142:J
      named time Lnet/minecraft/client/gui/screen/world/WorldListWidget$Entry;time:J
  • Constructor Details

    • Entry

      public Entry​(WorldListWidget levelList, LevelSummary level)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldza$a;<init>(Ldza;Ldza;Lddv;)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$Entry;<init>(Lnet/minecraft/client/gui/screen/world/WorldListWidget;Lnet/minecraft/client/gui/screen/world/WorldListWidget;Lnet/minecraft/world/level/storage/LevelSummary;)V
  • Method Details

    • render

      public void render​(MatrixStack matrices, 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:
      matrices - the matrix stack used for rendering
      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 Ldrq$a;a(Ldlr;IIIIIIIZF)V
      intermediary method_25343 Lnet/minecraft/class_350$class_351;method_25343(Lnet/minecraft/class_4587;IIIIIIIZF)V
      named render Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;render(Lnet/minecraft/client/util/math/MatrixStack;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:
      Mouse.onMouseButton(long, int, int, int), GLFW.GLFW_MOUSE_BUTTON_1
      Mappings:
      Namespace Name Mixin selector
      official a Ldst;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 a Ldza$a;a()V
      intermediary method_20164 Lnet/minecraft/class_528$class_4272;method_20164()V
      named play Lnet/minecraft/client/gui/screen/world/WorldListWidget$Entry;play()V
    • delete

      public void delete()
      Mappings:
      Namespace Name Mixin selector
      official b Ldza$a;b()V
      intermediary method_20169 Lnet/minecraft/class_528$class_4272;method_20169()V
      named delete Lnet/minecraft/client/gui/screen/world/WorldListWidget$Entry;delete()V
    • method_33685

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

      public void edit()
      Mappings:
      Namespace Name Mixin selector
      official d Ldza$a;d()V
      intermediary method_20171 Lnet/minecraft/class_528$class_4272;method_20171()V
      named edit Lnet/minecraft/client/gui/screen/world/WorldListWidget$Entry;edit()V
    • recreate

      public void recreate()
      Mappings:
      Namespace Name Mixin selector
      official e Ldza$a;e()V
      intermediary method_20173 Lnet/minecraft/class_528$class_4272;method_20173()V
      named recreate Lnet/minecraft/client/gui/screen/world/WorldListWidget$Entry;recreate()V
    • start

      private void start()
      Mappings:
      Namespace Name Mixin selector
      official g Ldza$a;g()V
      intermediary method_20174 Lnet/minecraft/class_528$class_4272;method_20174()V
      named start Lnet/minecraft/client/gui/screen/world/WorldListWidget$Entry;start()V
    • method_29990

      private void method_29990()
      Mappings:
      Namespace Name Mixin selector
      official h Ldza$a;h()V
      intermediary method_29990 Lnet/minecraft/class_528$class_4272;method_29990()V
      named method_29990 Lnet/minecraft/client/gui/screen/world/WorldListWidget$Entry;method_29990()V
    • getIconTexture

      @Nullable private NativeImageBackedTexture getIconTexture()
      Mappings:
      Namespace Name Mixin selector
      official i Ldza$a;i()Lerk;
      intermediary method_20175 Lnet/minecraft/class_528$class_4272;method_20175()Lnet/minecraft/class_1043;
      named getIconTexture Lnet/minecraft/client/gui/screen/world/WorldListWidget$Entry;getIconTexture()Lnet/minecraft/client/texture/NativeImageBackedTexture;
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Mappings:
      Namespace Name Mixin selector
      official close Ldza$a;close()V
      intermediary close Lnet/minecraft/class_528$class_4272;close()V
      named close Lnet/minecraft/client/gui/screen/world/WorldListWidget$Entry;close()V