Class PackListWidget.ResourcePackEntry
java.lang.Object
net.minecraft.client.gui.widget.EntryListWidget.Entry<E>
net.minecraft.client.gui.widget.AlwaysSelectedEntryListWidget.Entry<PackListWidget.ResourcePackEntry>
net.minecraft.client.gui.screen.pack.PackListWidget.ResourcePackEntry
- All Implemented Interfaces:
- Element,- Narratable,- Navigable
- Enclosing class:
- PackListWidget
@Environment(CLIENT)
public static class PackListWidget.ResourcePackEntry
extends AlwaysSelectedEntryListWidget.Entry<PackListWidget.ResourcePackEntry>
- Mappings:
- Namespace - Name - official - exw$a- intermediary - net/minecraft/class_521$class_4271- named - net/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected final MinecraftClientprivate final MultilineTextprivate final MultilineTextprivate final OrderedTextprivate static final Stringprivate 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 OrderedTextprivate final ResourcePackOrganizer.Packprivate final PackListWidgetFields inherited from interface net.minecraft.client.gui.ElementMAX_DOUBLE_CLICK_INTERVAL
- 
Constructor SummaryConstructorsConstructorDescriptionResourcePackEntry(MinecraftClient client, PackListWidget widget, ResourcePackOrganizer.Pack pack) 
- 
Method SummaryModifier and TypeMethodDescriptionprivate static MultilineTextcreateMultilineText(MinecraftClient client, Text text) private booleanenable()getName()private booleanbooleanmouseClicked(double mouseX, double mouseY, int button) Callback for when a mouse button down event has been captured.(package private) void(package private) voidvoidrender(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.voidtoggle()private static OrderedTexttrimTextToWidth(MinecraftClient client, Text text) Methods inherited from class net.minecraft.client.gui.widget.AlwaysSelectedEntryListWidget.EntryappendNarrationsMethods inherited from class net.minecraft.client.gui.widget.EntryListWidget.EntrydrawBorder, isFocused, isMouseOver, setFocusedMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.ElementcharTyped, getFocusedPath, getNavigationFocus, getNavigationPath, keyPressed, keyReleased, mouseDragged, mouseMoved, mouseReleased, mouseScrolledMethods inherited from interface net.minecraft.client.gui.navigation.NavigablegetNavigationOrder
- 
Field Details- 
field_32397private static final int field_32397- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - b- Lexw$a;b:I- intermediary - field_32397- Lnet/minecraft/class_521$class_4271;field_32397:I- named - field_32397- Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;field_32397:I
 
- 
field_32398private static final int field_32398- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - c- Lexw$a;c:I- intermediary - field_32398- Lnet/minecraft/class_521$class_4271;field_32398:I- named - field_32398- Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;field_32398:I
 
- 
field_32399private static final int field_32399- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - d- Lexw$a;d:I- intermediary - field_32399- Lnet/minecraft/class_521$class_4271;field_32399:I- named - field_32399- Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;field_32399:I
 
- 
field_32400private static final int field_32400- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - e- Lexw$a;e:I- intermediary - field_32400- Lnet/minecraft/class_521$class_4271;field_32400:I- named - field_32400- Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;field_32400:I
 
- 
field_32401private static final int field_32401- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - f- Lexw$a;f:I- intermediary - field_32401- Lnet/minecraft/class_521$class_4271;field_32401:I- named - field_32401- Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;field_32401:I
 
- 
field_32402private static final int field_32402- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - g- Lexw$a;g:I- intermediary - field_32402- Lnet/minecraft/class_521$class_4271;field_32402:I- named - field_32402- Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;field_32402:I
 
- 
field_32403private static final int field_32403- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - h- Lexw$a;h:I- intermediary - field_32403- Lnet/minecraft/class_521$class_4271;field_32403:I- named - field_32403- Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;field_32403:I
 
- 
field_32404private static final int field_32404- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - i- Lexw$a;i:I- intermediary - field_32404- Lnet/minecraft/class_521$class_4271;field_32404:I- named - field_32404- Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;field_32404:I
 
- 
ELLIPSIS- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - j- Lexw$a;j:Ljava/lang/String;- intermediary - field_32405- Lnet/minecraft/class_521$class_4271;field_32405:Ljava/lang/String;- named - ELLIPSIS- Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;ELLIPSIS:Ljava/lang/String;
 
- 
widget- Mappings:
- Namespace - Name - Mixin selector - official - k- Lexw$a;k:Lexw;- intermediary - field_19130- Lnet/minecraft/class_521$class_4271;field_19130:Lnet/minecraft/class_521;- named - widget- Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;widget:Lnet/minecraft/client/gui/screen/pack/PackListWidget;
 
- 
client- Mappings:
- Namespace - Name - Mixin selector - official - a- Lexw$a;a:Lenn;- intermediary - field_19128- Lnet/minecraft/class_521$class_4271;field_19128:Lnet/minecraft/class_310;- named - client- Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;client:Lnet/minecraft/client/MinecraftClient;
 
- 
pack- Mappings:
- Namespace - Name - Mixin selector - official - l- Lexw$a;l:Lexu$a;- intermediary - field_19129- Lnet/minecraft/class_521$class_4271;field_19129:Lnet/minecraft/class_5369$class_5371;- named - pack- Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;pack:Lnet/minecraft/client/gui/screen/pack/ResourcePackOrganizer$Pack;
 
- 
displayName- Mappings:
- Namespace - Name - Mixin selector - official - m- Lexw$a;m:Laom;- intermediary - field_26590- Lnet/minecraft/class_521$class_4271;field_26590:Lnet/minecraft/class_5481;- named - displayName- Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;displayName:Lnet/minecraft/text/OrderedText;
 
- 
description- Mappings:
- Namespace - Name - Mixin selector - official - n- Lexw$a;n:Lepz;- intermediary - field_26591- Lnet/minecraft/class_521$class_4271;field_26591:Lnet/minecraft/class_5489;- named - description- Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;description:Lnet/minecraft/client/font/MultilineText;
 
- 
incompatibleText- Mappings:
- Namespace - Name - Mixin selector - official - o- Lexw$a;o:Laom;- intermediary - field_26784- Lnet/minecraft/class_521$class_4271;field_26784:Lnet/minecraft/class_5481;- named - incompatibleText- Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;incompatibleText:Lnet/minecraft/text/OrderedText;
 
- 
compatibilityNotificationText- Mappings:
- Namespace - Name - Mixin selector - official - p- Lexw$a;p:Lepz;- intermediary - field_26785- Lnet/minecraft/class_521$class_4271;field_26785:Lnet/minecraft/class_5489;- named - compatibilityNotificationText- Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;compatibilityNotificationText:Lnet/minecraft/client/font/MultilineText;
 
 
- 
- 
Constructor Details- 
ResourcePackEntrypublic ResourcePackEntry(MinecraftClient client, PackListWidget widget, ResourcePackOrganizer.Pack pack) - Mappings:
- Namespace - Name - Mixin selector - official - <init>- Lexw$a;<init>(Lenn;Lexw;Lexu$a;)V- intermediary - <init>- Lnet/minecraft/class_521$class_4271;<init>(Lnet/minecraft/class_310;Lnet/minecraft/class_521;Lnet/minecraft/class_5369$class_5371;)V- named - <init>- Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;<init>(Lnet/minecraft/client/MinecraftClient;Lnet/minecraft/client/gui/screen/pack/PackListWidget;Lnet/minecraft/client/gui/screen/pack/ResourcePackOrganizer$Pack;)V
 
 
- 
- 
Method Details- 
trimTextToWidth- Mappings:
- Namespace - Name - Mixin selector - official - a- Lexw$a;a(Lenn;Lsw;)Laom;- intermediary - method_31229- Lnet/minecraft/class_521$class_4271;method_31229(Lnet/minecraft/class_310;Lnet/minecraft/class_2561;)Lnet/minecraft/class_5481;- named - trimTextToWidth- Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;trimTextToWidth(Lnet/minecraft/client/MinecraftClient;Lnet/minecraft/text/Text;)Lnet/minecraft/text/OrderedText;
 
- 
createMultilineText- Mappings:
- Namespace - Name - Mixin selector - official - b- Lexw$a;b(Lenn;Lsw;)Lepz;- intermediary - method_31230- Lnet/minecraft/class_521$class_4271;method_31230(Lnet/minecraft/class_310;Lnet/minecraft/class_2561;)Lnet/minecraft/class_5489;- named - createMultilineText- Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;createMultilineText(Lnet/minecraft/client/MinecraftClient;Lnet/minecraft/text/Text;)Lnet/minecraft/client/font/MultilineText;
 
- 
getNarration- Specified by:
- getNarrationin class- AlwaysSelectedEntryListWidget.Entry<PackListWidget.ResourcePackEntry>
- Mappings:
- Namespace - Name - Mixin selector - official - a- Leqc$a;a()Lsw;- 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;
 
- 
renderpublic 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 class- EntryListWidget.Entry<PackListWidget.ResourcePackEntry>
- 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- Lepc$a;a(Leox;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
 
- 
getName- Mappings:
- Namespace - Name - Mixin selector - official - b- Lexw$a;b()Ljava/lang/String;- intermediary - method_48279- Lnet/minecraft/class_521$class_4271;method_48279()Ljava/lang/String;- named - getName- Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;getName()Ljava/lang/String;
 
- 
isSelectableprivate boolean isSelectable()- Mappings:
- Namespace - Name - Mixin selector - official - e- Lexw$a;e()Z- intermediary - method_20152- Lnet/minecraft/class_521$class_4271;method_20152()Z- named - isSelectable- Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;isSelectable()Z
 
- 
togglepublic void toggle()- Mappings:
- Namespace - Name - Mixin selector - official - d- Lexw$a;d()V- intermediary - method_48280- Lnet/minecraft/class_521$class_4271;method_48280()V- named - toggle- Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;toggle()V
 
- 
moveTowardStartvoid moveTowardStart()- Mappings:
- Namespace - Name - Mixin selector - official - f- Lexw$a;f()V- intermediary - method_48281- Lnet/minecraft/class_521$class_4271;method_48281()V- named - moveTowardStart- Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;moveTowardStart()V
 
- 
moveTowardEndvoid moveTowardEnd()- Mappings:
- Namespace - Name - Mixin selector - official - g- Lexw$a;g()V- intermediary - method_48282- Lnet/minecraft/class_521$class_4271;method_48282()V- named - moveTowardEnd- Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;moveTowardEnd()V
 
- 
enableprivate boolean enable()- Mappings:
- Namespace - Name - Mixin selector - official - h- Lexw$a;h()Z- intermediary - method_48478- Lnet/minecraft/class_521$class_4271;method_48478()Z- named - enable- Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;enable()Z
 
- 
mouseClickedpublic 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.- Parameters:
- mouseX- the X coordinate of the mouse
- mouseY- the Y coordinate of the mouse
- button- the mouse button number
- Returns:
- trueto indicate that the event handling is successful/valid
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - a- Leqt;a(DDI)Z- intermediary - method_25402- Lnet/minecraft/class_364;method_25402(DDI)Z- named - mouseClicked- Lnet/minecraft/client/gui/Element;mouseClicked(DDI)Z
 
 
-