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
- Enclosing class:
PackListWidget
@Environment(CLIENT)
public static class PackListWidget.ResourcePackEntry
extends AlwaysSelectedEntryListWidget.Entry<PackListWidget.ResourcePackEntry>
- Mappings:
Namespace Name official etd$aintermediary net/minecraft/class_521$class_4271named net/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry
-
Field Summary
FieldsModifier 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.Element
MAX_DOUBLE_CLICK_INTERVAL -
Constructor Summary
ConstructorsConstructorDescriptionResourcePackEntry(MinecraftClient client, PackListWidget widget, ResourcePackOrganizer.Pack pack) -
Method Summary
Modifier and TypeMethodDescriptionprivate static MultilineTextcreateMultilineText(MinecraftClient client, Text text) private booleanvoidvoidvoidbooleanmouseClicked(double mouseX, double mouseY, int button) Callback for when a mouse button down event has been captured.voidrender(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.private static OrderedTexttrimTextToWidth(MinecraftClient client, Text text) Methods inherited from class net.minecraft.client.gui.widget.AlwaysSelectedEntryListWidget.Entry
appendNarrationsMethods inherited from class net.minecraft.client.gui.widget.EntryListWidget.Entry
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, keyPressed, keyReleased, method_48202, method_48205, method_48218, mouseDragged, mouseMoved, mouseReleased, mouseScrolled
-
Field Details
-
field_32397
private static final int field_32397- See Also:
- Mappings:
Namespace Name Mixin selector official bLetd$a;b:Iintermediary field_32397Lnet/minecraft/class_521$class_4271;field_32397:Inamed field_32397Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;field_32397:I
-
field_32398
private static final int field_32398- See Also:
- Mappings:
Namespace Name Mixin selector official cLetd$a;c:Iintermediary field_32398Lnet/minecraft/class_521$class_4271;field_32398:Inamed field_32398Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;field_32398:I
-
field_32399
private static final int field_32399- See Also:
- Mappings:
Namespace Name Mixin selector official dLetd$a;d:Iintermediary field_32399Lnet/minecraft/class_521$class_4271;field_32399:Inamed field_32399Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;field_32399:I
-
field_32400
private static final int field_32400- See Also:
- Mappings:
Namespace Name Mixin selector official eLetd$a;e:Iintermediary field_32400Lnet/minecraft/class_521$class_4271;field_32400:Inamed field_32400Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;field_32400:I
-
field_32401
private static final int field_32401- See Also:
- Mappings:
Namespace Name Mixin selector official fLetd$a;f:Iintermediary field_32401Lnet/minecraft/class_521$class_4271;field_32401:Inamed field_32401Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;field_32401:I
-
field_32402
private static final int field_32402- See Also:
- Mappings:
Namespace Name Mixin selector official hLetd$a;h:Iintermediary field_32402Lnet/minecraft/class_521$class_4271;field_32402:Inamed field_32402Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;field_32402:I
-
field_32403
private static final int field_32403- See Also:
- Mappings:
Namespace Name Mixin selector official iLetd$a;i:Iintermediary field_32403Lnet/minecraft/class_521$class_4271;field_32403:Inamed field_32403Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;field_32403:I
-
field_32404
private static final int field_32404- See Also:
- Mappings:
Namespace Name Mixin selector official jLetd$a;j:Iintermediary field_32404Lnet/minecraft/class_521$class_4271;field_32404:Inamed field_32404Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;field_32404:I
-
ELLIPSIS
- See Also:
- Mappings:
Namespace Name Mixin selector official kLetd$a;k:Ljava/lang/String;intermediary field_32405Lnet/minecraft/class_521$class_4271;field_32405:Ljava/lang/String;named ELLIPSISLnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;ELLIPSIS:Ljava/lang/String;
-
widget
- Mappings:
Namespace Name Mixin selector official lLetd$a;l:Letd;intermediary field_19130Lnet/minecraft/class_521$class_4271;field_19130:Lnet/minecraft/class_521;named widgetLnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;widget:Lnet/minecraft/client/gui/screen/pack/PackListWidget;
-
client
- Mappings:
Namespace Name Mixin selector official aLetd$a;a:Lejt;intermediary field_19128Lnet/minecraft/class_521$class_4271;field_19128:Lnet/minecraft/class_310;named clientLnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;client:Lnet/minecraft/client/MinecraftClient;
-
pack
- Mappings:
Namespace Name Mixin selector official mLetd$a;m:Letb$a;intermediary field_19129Lnet/minecraft/class_521$class_4271;field_19129:Lnet/minecraft/class_5369$class_5371;named packLnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;pack:Lnet/minecraft/client/gui/screen/pack/ResourcePackOrganizer$Pack;
-
displayName
- Mappings:
Namespace Name Mixin selector official nLetd$a;n:Lanz;intermediary field_26590Lnet/minecraft/class_521$class_4271;field_26590:Lnet/minecraft/class_5481;named displayNameLnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;displayName:Lnet/minecraft/text/OrderedText;
-
description
- Mappings:
Namespace Name Mixin selector official oLetd$a;o:Lemb;intermediary field_26591Lnet/minecraft/class_521$class_4271;field_26591:Lnet/minecraft/class_5489;named descriptionLnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;description:Lnet/minecraft/client/font/MultilineText;
-
incompatibleText
- Mappings:
Namespace Name Mixin selector official pLetd$a;p:Lanz;intermediary field_26784Lnet/minecraft/class_521$class_4271;field_26784:Lnet/minecraft/class_5481;named incompatibleTextLnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;incompatibleText:Lnet/minecraft/text/OrderedText;
-
compatibilityNotificationText
- Mappings:
Namespace Name Mixin selector official qLetd$a;q:Lemb;intermediary field_26785Lnet/minecraft/class_521$class_4271;field_26785:Lnet/minecraft/class_5489;named compatibilityNotificationTextLnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;compatibilityNotificationText:Lnet/minecraft/client/font/MultilineText;
-
-
Constructor Details
-
ResourcePackEntry
public ResourcePackEntry(MinecraftClient client, PackListWidget widget, ResourcePackOrganizer.Pack pack) - Mappings:
Namespace Name Mixin selector official <init>Letd$a;<init>(Lejt;Letd;Letb$a;)Vintermediary <init>Lnet/minecraft/class_521$class_4271;<init>(Lnet/minecraft/class_310;Lnet/minecraft/class_521;Lnet/minecraft/class_5369$class_5371;)Vnamed <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 aLetd$a;a(Lejt;Lsu;)Lanz;intermediary method_31229Lnet/minecraft/class_521$class_4271;method_31229(Lnet/minecraft/class_310;Lnet/minecraft/class_2561;)Lnet/minecraft/class_5481;named trimTextToWidthLnet/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 bLetd$a;b(Lejt;Lsu;)Lemb;intermediary method_31230Lnet/minecraft/class_521$class_4271;method_31230(Lnet/minecraft/class_310;Lnet/minecraft/class_2561;)Lnet/minecraft/class_5489;named createMultilineTextLnet/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 classAlwaysSelectedEntryListWidget.Entry<PackListWidget.ResourcePackEntry>- Mappings:
Namespace Name Mixin selector official bLeme$a;b()Lsu;intermediary method_37006Lnet/minecraft/class_4280$class_4281;method_37006()Lnet/minecraft/class_2561;named getNarrationLnet/minecraft/client/gui/widget/AlwaysSelectedEntryListWidget$Entry;getNarration()Lnet/minecraft/text/Text;
-
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:
renderin classEntryListWidget.Entry<PackListWidget.ResourcePackEntry>- Parameters:
matrices- the matrix stack used for renderingindex- 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 official aLelh$a;a(Leer;IIIIIIIZF)Vintermediary method_25343Lnet/minecraft/class_350$class_351;method_25343(Lnet/minecraft/class_4587;IIIIIIIZF)Vnamed renderLnet/minecraft/client/gui/widget/EntryListWidget$Entry;render(Lnet/minecraft/client/util/math/MatrixStack;IIIIIIIZF)V
-
method_48279
- Mappings:
Namespace Name Mixin selector official aLetd$a;a()Ljava/lang/String;intermediary method_48279Lnet/minecraft/class_521$class_4271;method_48279()Ljava/lang/String;named method_48279Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;method_48279()Ljava/lang/String;
-
isSelectable
private boolean isSelectable()- Mappings:
Namespace Name Mixin selector official gLetd$a;g()Zintermediary method_20152Lnet/minecraft/class_521$class_4271;method_20152()Znamed isSelectableLnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;isSelectable()Z
-
method_48280
public void method_48280()- Mappings:
Namespace Name Mixin selector official dLetd$a;d()Vintermediary method_48280Lnet/minecraft/class_521$class_4271;method_48280()Vnamed method_48280Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;method_48280()V
-
method_48281
public void method_48281()- Mappings:
Namespace Name Mixin selector official eLetd$a;e()Vintermediary method_48281Lnet/minecraft/class_521$class_4271;method_48281()Vnamed method_48281Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;method_48281()V
-
method_48282
public void method_48282()- Mappings:
Namespace Name Mixin selector official fLetd$a;f()Vintermediary method_48282Lnet/minecraft/class_521$class_4271;method_48282()Vnamed method_48282Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;method_48282()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.- 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 official aLemq;a(DDI)Zintermediary method_25402Lnet/minecraft/class_364;method_25402(DDI)Znamed mouseClickedLnet/minecraft/client/gui/Element;mouseClicked(DDI)Z
-