Class PackListWidget.ResourcePackEntry
java.lang.Object
net.minecraft.client.gui.widget.EntryListWidget.Entry<PackListWidget.ResourcePackEntry>
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 named net/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry
intermediary net/minecraft/class_521$class_4271
official fra$a
-
Field Summary
Modifier and TypeFieldDescriptionprotected final MinecraftClient
private final MultilineText
private final MultilineText
private final OrderedText
private static final String
private static final int
private static final int
private final OrderedText
private final ResourcePackOrganizer.Pack
private final PackListWidget
Fields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL
-
Constructor Summary
ConstructorDescriptionResourcePackEntry
(MinecraftClient client, PackListWidget widget, ResourcePackOrganizer.Pack pack) -
Method Summary
Modifier and TypeMethodDescriptionprivate static MultilineText
createMultilineText
(MinecraftClient client, Text text) private boolean
enable()
getName()
private boolean
boolean
mouseClicked
(double mouseX, double mouseY, int button) Callback for when a mouse button down event has been captured.(package private) void
(package private) void
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.void
toggle()
private static OrderedText
trimTextToWidth
(MinecraftClient client, Text text) Methods inherited from class net.minecraft.client.gui.widget.AlwaysSelectedEntryListWidget.Entry
appendNarrations
Methods inherited from class net.minecraft.client.gui.widget.EntryListWidget.Entry
drawBorder, isFocused, isMouseOver, setFocused
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.gui.Element
charTyped, getFocusedPath, getNavigationFocus, getNavigationPath, keyPressed, keyReleased, mouseDragged, mouseMoved, mouseReleased, mouseScrolled
Methods inherited from interface net.minecraft.client.gui.navigation.Navigable
getNavigationOrder
-
Field Details
-
field_32403
private static final int field_32403- See Also:
- Mappings:
Namespace Name Mixin selector named field_32403
Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;field_32403:I
intermediary field_32403
Lnet/minecraft/class_521$class_4271;field_32403:I
official b
Lfra$a;b:I
-
field_32404
private static final int field_32404- See Also:
- Mappings:
Namespace Name Mixin selector named field_32404
Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;field_32404:I
intermediary field_32404
Lnet/minecraft/class_521$class_4271;field_32404:I
official c
Lfra$a;c:I
-
ELLIPSIS
- See Also:
- Mappings:
Namespace Name Mixin selector named ELLIPSIS
Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;ELLIPSIS:Ljava/lang/String;
intermediary field_32405
Lnet/minecraft/class_521$class_4271;field_32405:Ljava/lang/String;
official d
Lfra$a;d:Ljava/lang/String;
-
widget
- Mappings:
Namespace Name Mixin selector named widget
Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;widget:Lnet/minecraft/client/gui/screen/pack/PackListWidget;
intermediary field_19130
Lnet/minecraft/class_521$class_4271;field_19130:Lnet/minecraft/class_521;
official e
Lfra$a;e:Lfra;
-
client
- Mappings:
Namespace Name Mixin selector named client
Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;client:Lnet/minecraft/client/MinecraftClient;
intermediary field_19128
Lnet/minecraft/class_521$class_4271;field_19128:Lnet/minecraft/class_310;
official a
Lfra$a;a:Lffw;
-
pack
- Mappings:
Namespace Name Mixin selector named pack
Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;pack:Lnet/minecraft/client/gui/screen/pack/ResourcePackOrganizer$Pack;
intermediary field_19129
Lnet/minecraft/class_521$class_4271;field_19129:Lnet/minecraft/class_5369$class_5371;
official f
Lfra$a;f:Lfqy$a;
-
displayName
- Mappings:
Namespace Name Mixin selector named displayName
Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;displayName:Lnet/minecraft/text/OrderedText;
intermediary field_26590
Lnet/minecraft/class_521$class_4271;field_26590:Lnet/minecraft/class_5481;
official g
Lfra$a;g:Laxs;
-
description
- Mappings:
Namespace Name Mixin selector named description
Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;description:Lnet/minecraft/client/font/MultilineText;
intermediary field_26591
Lnet/minecraft/class_521$class_4271;field_26591:Lnet/minecraft/class_5489;
official h
Lfra$a;h:Lfin;
-
incompatibleText
- Mappings:
Namespace Name Mixin selector named incompatibleText
Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;incompatibleText:Lnet/minecraft/text/OrderedText;
intermediary field_26784
Lnet/minecraft/class_521$class_4271;field_26784:Lnet/minecraft/class_5481;
official i
Lfra$a;i:Laxs;
-
compatibilityNotificationText
- Mappings:
Namespace Name Mixin selector named compatibilityNotificationText
Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;compatibilityNotificationText:Lnet/minecraft/client/font/MultilineText;
intermediary field_26785
Lnet/minecraft/class_521$class_4271;field_26785:Lnet/minecraft/class_5489;
official j
Lfra$a;j:Lfin;
-
-
Constructor Details
-
ResourcePackEntry
public ResourcePackEntry(MinecraftClient client, PackListWidget widget, ResourcePackOrganizer.Pack pack) - Mappings:
Namespace Name Mixin selector 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
intermediary <init>
Lnet/minecraft/class_521$class_4271;<init>(Lnet/minecraft/class_310;Lnet/minecraft/class_521;Lnet/minecraft/class_5369$class_5371;)V
official <init>
Lfra$a;<init>(Lffw;Lfra;Lfqy$a;)V
-
-
Method Details
-
trimTextToWidth
- Mappings:
Namespace Name Mixin selector named trimTextToWidth
Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;trimTextToWidth(Lnet/minecraft/client/MinecraftClient;Lnet/minecraft/text/Text;)Lnet/minecraft/text/OrderedText;
intermediary method_31229
Lnet/minecraft/class_521$class_4271;method_31229(Lnet/minecraft/class_310;Lnet/minecraft/class_2561;)Lnet/minecraft/class_5481;
official a
Lfra$a;a(Lffw;Lwu;)Laxs;
-
createMultilineText
- Mappings:
Namespace Name Mixin selector named createMultilineText
Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;createMultilineText(Lnet/minecraft/client/MinecraftClient;Lnet/minecraft/text/Text;)Lnet/minecraft/client/font/MultilineText;
intermediary method_31230
Lnet/minecraft/class_521$class_4271;method_31230(Lnet/minecraft/class_310;Lnet/minecraft/class_2561;)Lnet/minecraft/class_5489;
official b
Lfra$a;b(Lffw;Lwu;)Lfin;
-
getNarration
- Specified by:
getNarration
in classAlwaysSelectedEntryListWidget.Entry<PackListWidget.ResourcePackEntry>
- Mappings:
Namespace Name Mixin selector named getNarration
Lnet/minecraft/client/gui/widget/AlwaysSelectedEntryListWidget$Entry;getNarration()Lnet/minecraft/text/Text;
intermediary method_37006
Lnet/minecraft/class_4280$class_4281;method_37006()Lnet/minecraft/class_2561;
official a
Lfiq$a;a()Lwu;
-
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 classEntryListWidget.Entry<PackListWidget.ResourcePackEntry>
- 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 named render
Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;render(Lnet/minecraft/client/gui/DrawContext;IIIIIIIZF)V
intermediary method_25343
Lnet/minecraft/class_350$class_351;method_25343(Lnet/minecraft/class_332;IIIIIIIZF)V
official a
Lfhp$a;a(Lfhh;IIIIIIIZF)V
-
getName
- Mappings:
Namespace Name Mixin selector named getName
Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;getName()Ljava/lang/String;
intermediary method_48279
Lnet/minecraft/class_521$class_4271;method_48279()Ljava/lang/String;
official b
Lfra$a;b()Ljava/lang/String;
-
isSelectable
private boolean isSelectable()- Mappings:
Namespace Name Mixin selector named isSelectable
Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;isSelectable()Z
intermediary method_20152
Lnet/minecraft/class_521$class_4271;method_20152()Z
official d
Lfra$a;d()Z
-
toggle
public void toggle()- Mappings:
Namespace Name Mixin selector named toggle
Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;toggle()V
intermediary method_48280
Lnet/minecraft/class_521$class_4271;method_48280()V
official c
Lfra$a;c()V
-
moveTowardStart
void moveTowardStart()- Mappings:
Namespace Name Mixin selector named moveTowardStart
Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;moveTowardStart()V
intermediary method_48281
Lnet/minecraft/class_521$class_4271;method_48281()V
official e
Lfra$a;e()V
-
moveTowardEnd
void moveTowardEnd()- Mappings:
Namespace Name Mixin selector named moveTowardEnd
Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;moveTowardEnd()V
intermediary method_48282
Lnet/minecraft/class_521$class_4271;method_48282()V
official f
Lfra$a;f()V
-
enable
private boolean enable()- Mappings:
Namespace Name Mixin selector named enable
Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;enable()Z
intermediary method_48478
Lnet/minecraft/class_521$class_4271;method_48478()Z
official h
Lfra$a;h()Z
-
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 inGLFW
class.- Specified by:
mouseClicked
in interfaceElement
- Overrides:
mouseClicked
in classAlwaysSelectedEntryListWidget.Entry<PackListWidget.ResourcePackEntry>
- Parameters:
mouseX
- the X coordinate of the mousemouseY
- the Y coordinate of the mousebutton
- the mouse button number- Returns:
true
to indicate that the event handling is successful/valid- See Also:
- Mappings:
Namespace Name Mixin selector named mouseClicked
Lnet/minecraft/client/gui/Element;mouseClicked(DDI)Z
intermediary method_25402
Lnet/minecraft/class_364;method_25402(DDI)Z
official a
Lfjq;a(DDI)Z
-