Class WorldListWidget.WorldEntry
java.lang.Object
net.minecraft.client.gui.widget.EntryListWidget.Entry<E>
net.minecraft.client.gui.widget.AlwaysSelectedEntryListWidget.Entry<WorldListWidget.Entry>
net.minecraft.client.gui.screen.world.WorldListWidget.Entry
net.minecraft.client.gui.screen.world.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 intermediary net/minecraft/class_528$class_4272official eza$cnamed net/minecraft/client/gui/screen/world/WorldListWidget$WorldEntry
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final MinecraftClientprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate final @Nullable NativeImageBackedTextureprivate final Identifierprivate final LevelSummaryprivate final SelectWorldScreenprivate longFields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voiddelete()voidvoidedit()private @Nullable NativeImageBackedTexturebooleanbooleanmouseClicked(double mouseX, double mouseY, int button) Callback for when a mouse button down event has been captured.private voidvoidplay()voidrecreate()voidrender(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.private voidstart()Methods inherited from class net.minecraft.client.gui.widget.AlwaysSelectedEntryListWidget.Entry
appendNarrationsMethods inherited from class net.minecraft.client.gui.widget.EntryListWidget.Entry
drawBorder, isFocused, isMouseOver, setFocusedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.Element
charTyped, getFocusedPath, getNavigationFocus, getNavigationPath, keyPressed, keyReleased, mouseDragged, mouseMoved, mouseReleased, mouseScrolledMethods inherited from interface net.minecraft.client.gui.navigation.Navigable
getNavigationOrder
-
Field Details
-
field_32435
private static final int field_32435- See Also:
- Mappings:
Namespace Name Mixin selector intermediary field_32435Lnet/minecraft/class_528$class_4272;field_32435:Iofficial bLeza$c;b:Inamed field_32435Lnet/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 intermediary field_32436Lnet/minecraft/class_528$class_4272;field_32436:Iofficial cLeza$c;c:Inamed field_32436Lnet/minecraft/client/gui/screen/world/WorldListWidget$WorldEntry;field_32436:I
-
field_32437
private static final int field_32437- See Also:
- Mappings:
Namespace Name Mixin selector intermediary field_32437Lnet/minecraft/class_528$class_4272;field_32437:Iofficial dLeza$c;d:Inamed field_32437Lnet/minecraft/client/gui/screen/world/WorldListWidget$WorldEntry;field_32437:I
-
field_32438
private static final int field_32438- See Also:
- Mappings:
Namespace Name Mixin selector intermediary field_32438Lnet/minecraft/class_528$class_4272;field_32438:Iofficial eLeza$c;e:Inamed field_32438Lnet/minecraft/client/gui/screen/world/WorldListWidget$WorldEntry;field_32438:I
-
field_32439
private static final int field_32439- See Also:
- Mappings:
Namespace Name Mixin selector intermediary field_32439Lnet/minecraft/class_528$class_4272;field_32439:Iofficial fLeza$c;f:Inamed field_32439Lnet/minecraft/client/gui/screen/world/WorldListWidget$WorldEntry;field_32439:I
-
field_32440
private static final int field_32440- See Also:
- Mappings:
Namespace Name Mixin selector intermediary field_32440Lnet/minecraft/class_528$class_4272;field_32440:Iofficial gLeza$c;g:Inamed field_32440Lnet/minecraft/client/gui/screen/world/WorldListWidget$WorldEntry;field_32440:I
-
field_32441
private static final int field_32441- See Also:
- Mappings:
Namespace Name Mixin selector intermediary field_32441Lnet/minecraft/class_528$class_4272;field_32441:Iofficial hLeza$c;h:Inamed field_32441Lnet/minecraft/client/gui/screen/world/WorldListWidget$WorldEntry;field_32441:I
-
field_32442
private static final int field_32442- See Also:
- Mappings:
Namespace Name Mixin selector intermediary field_32442Lnet/minecraft/class_528$class_4272;field_32442:Iofficial iLeza$c;i:Inamed field_32442Lnet/minecraft/client/gui/screen/world/WorldListWidget$WorldEntry;field_32442:I
-
client
- Mappings:
Namespace Name Mixin selector intermediary field_19136Lnet/minecraft/class_528$class_4272;field_19136:Lnet/minecraft/class_310;official jLeza$c;j:Lenf;named clientLnet/minecraft/client/gui/screen/world/WorldListWidget$WorldEntry;client:Lnet/minecraft/client/MinecraftClient;
-
screen
- Mappings:
Namespace Name Mixin selector intermediary field_19137Lnet/minecraft/class_528$class_4272;field_19137:Lnet/minecraft/class_526;official kLeza$c;k:Leyv;named screenLnet/minecraft/client/gui/screen/world/WorldListWidget$WorldEntry;screen:Lnet/minecraft/client/gui/screen/world/SelectWorldScreen;
-
level
- Mappings:
Namespace Name Mixin selector intermediary field_19138Lnet/minecraft/class_528$class_4272;field_19138:Lnet/minecraft/class_34;official lLeza$c;l:Ldyw;named levelLnet/minecraft/client/gui/screen/world/WorldListWidget$WorldEntry;level:Lnet/minecraft/world/level/storage/LevelSummary;
-
iconLocation
- Mappings:
Namespace Name Mixin selector intermediary field_19139Lnet/minecraft/class_528$class_4272;field_19139:Lnet/minecraft/class_2960;official mLeza$c;m:Lacq;named iconLocationLnet/minecraft/client/gui/screen/world/WorldListWidget$WorldEntry;iconLocation:Lnet/minecraft/util/Identifier;
-
iconPath
- Mappings:
Namespace Name Mixin selector intermediary field_19140Lnet/minecraft/class_528$class_4272;field_19140:Ljava/nio/file/Path;official nLeza$c;n:Ljava/nio/file/Path;named iconPathLnet/minecraft/client/gui/screen/world/WorldListWidget$WorldEntry;iconPath:Ljava/nio/file/Path;
-
icon
- Mappings:
Namespace Name Mixin selector intermediary field_19141Lnet/minecraft/class_528$class_4272;field_19141:Lnet/minecraft/class_1043;official oLeza$c;o:Lftx;named iconLnet/minecraft/client/gui/screen/world/WorldListWidget$WorldEntry;icon:Lnet/minecraft/client/texture/NativeImageBackedTexture;
-
time
private long time- Mappings:
Namespace Name Mixin selector intermediary field_19142Lnet/minecraft/class_528$class_4272;field_19142:Jofficial pLeza$c;p:Jnamed timeLnet/minecraft/client/gui/screen/world/WorldListWidget$WorldEntry;time:J
-
-
Constructor Details
-
WorldEntry
- Mappings:
Namespace Name Mixin selector intermediary <init>Lnet/minecraft/class_528$class_4272;<init>(Lnet/minecraft/class_528;Lnet/minecraft/class_528;Lnet/minecraft/class_34;)Vofficial <init>Leza$c;<init>(Leza;Leza;Ldyw;)Vnamed <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
-
getNarration
- Specified by:
getNarrationin classAlwaysSelectedEntryListWidget.Entry<WorldListWidget.Entry>- Mappings:
Namespace Name Mixin selector intermediary method_37006Lnet/minecraft/class_4280$class_4281;method_37006()Lnet/minecraft/class_2561;official aLept$a;a()Lsw;named getNarrationLnet/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:
renderin classEntryListWidget.Entry<WorldListWidget.Entry>- Parameters:
index- the index of the entryy- the Y coordinate of the entryx- the X coordinate of the entryentryWidth- the width of the entryentryHeight- the height of the entrymouseX- the X coordinate of the mousemouseY- the Y coordinate of the mousehovered- whether the mouse is hovering over the entry- Mappings:
Namespace Name Mixin selector intermediary method_25343Lnet/minecraft/class_350$class_351;method_25343(Lnet/minecraft/class_332;IIIIIIIZF)Vofficial aLeou$a;a(Leop;IIIIIIIZF)Vnamed renderLnet/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 inGLFWclass.- Specified by:
mouseClickedin interfaceElement- Parameters:
mouseX- the X coordinate of the mousemouseY- the Y coordinate of the mousebutton- the mouse button number- Returns:
trueto indicate that the event handling is successful/valid- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_25402Lnet/minecraft/class_364;method_25402(DDI)Zofficial aLeqk;a(DDI)Znamed mouseClickedLnet/minecraft/client/gui/Element;mouseClicked(DDI)Z
-
play
public void play()- Mappings:
Namespace Name Mixin selector intermediary method_20164Lnet/minecraft/class_528$class_4272;method_20164()Vofficial dLeza$c;d()Vnamed playLnet/minecraft/client/gui/screen/world/WorldListWidget$WorldEntry;play()V
-
deleteIfConfirmed
public void deleteIfConfirmed()- Mappings:
Namespace Name Mixin selector intermediary method_20169Lnet/minecraft/class_528$class_4272;method_20169()Vofficial eLeza$c;e()Vnamed deleteIfConfirmedLnet/minecraft/client/gui/screen/world/WorldListWidget$WorldEntry;deleteIfConfirmed()V
-
delete
public void delete()- Mappings:
Namespace Name Mixin selector intermediary method_33685Lnet/minecraft/class_528$class_4272;method_33685()Vofficial fLeza$c;f()Vnamed deleteLnet/minecraft/client/gui/screen/world/WorldListWidget$WorldEntry;delete()V
-
edit
public void edit()- Mappings:
Namespace Name Mixin selector intermediary method_20171Lnet/minecraft/class_528$class_4272;method_20171()Vofficial gLeza$c;g()Vnamed editLnet/minecraft/client/gui/screen/world/WorldListWidget$WorldEntry;edit()V
-
recreate
public void recreate()- Mappings:
Namespace Name Mixin selector intermediary method_20173Lnet/minecraft/class_528$class_4272;method_20173()Vofficial hLeza$c;h()Vnamed recreateLnet/minecraft/client/gui/screen/world/WorldListWidget$WorldEntry;recreate()V
-
start
private void start()- Mappings:
Namespace Name Mixin selector intermediary method_20174Lnet/minecraft/class_528$class_4272;method_20174()Vofficial jLeza$c;j()Vnamed startLnet/minecraft/client/gui/screen/world/WorldListWidget$WorldEntry;start()V
-
openReadingWorldScreen
private void openReadingWorldScreen()- Mappings:
Namespace Name Mixin selector intermediary method_29990Lnet/minecraft/class_528$class_4272;method_29990()Vofficial kLeza$c;k()Vnamed openReadingWorldScreenLnet/minecraft/client/gui/screen/world/WorldListWidget$WorldEntry;openReadingWorldScreen()V
-
getIconTexture
- Mappings:
Namespace Name Mixin selector intermediary method_20175Lnet/minecraft/class_528$class_4272;method_20175()Lnet/minecraft/class_1043;official lLeza$c;l()Lftx;named getIconTextureLnet/minecraft/client/gui/screen/world/WorldListWidget$WorldEntry;getIconTexture()Lnet/minecraft/client/texture/NativeImageBackedTexture;
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Overrides:
closein classWorldListWidget.Entry
-
getLevelDisplayName
- Mappings:
Namespace Name Mixin selector intermediary method_35740Lnet/minecraft/class_528$class_4272;method_35740()Ljava/lang/String;official iLeza$c;i()Ljava/lang/String;named getLevelDisplayNameLnet/minecraft/client/gui/screen/world/WorldListWidget$WorldEntry;getLevelDisplayName()Ljava/lang/String;
-
isAvailable
public boolean isAvailable()- Specified by:
isAvailablein classWorldListWidget.Entry- Mappings:
Namespace Name Mixin selector intermediary method_43465Lnet/minecraft/class_528$class_7414;method_43465()Zofficial bLeza$a;b()Znamed isAvailableLnet/minecraft/client/gui/screen/world/WorldListWidget$Entry;isAvailable()Z
-