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 edi$a
intermediary net/minecraft/class_521$class_4271
named net/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry
-
Field Summary
Modifier and TypeFieldDescriptionprotected MinecraftClient
private MultilineText
private MultilineText
private OrderedText
private static int
private static int
private static int
private static int
private static int
private static int
private static int
private static int
private static String
private OrderedText
private ResourcePackOrganizer.Pack
protected Screen
private PackListWidget
-
Constructor Summary
ConstructorDescriptionResourcePackEntry(MinecraftClient client, PackListWidget widget, Screen screen, ResourcePackOrganizer.Pack pack)
-
Method Summary
Modifier and TypeMethodDescriptionprivate static MultilineText
createMultilineText(MinecraftClient client, Text text)
private boolean
boolean
mouseClicked(double mouseX, double mouseY, int button)
Callback for when a mouse button down event has been captured.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.private static OrderedText
trimTextToWidth(MinecraftClient client, Text text)
Methods inherited from class net.minecraft.client.gui.widget.AlwaysSelectedEntryListWidget.Entry
appendNarrations, changeFocus
Methods inherited from class net.minecraft.client.gui.widget.EntryListWidget.Entry
isMouseOver
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, keyPressed, keyReleased, mouseDragged, mouseMoved, mouseReleased, mouseScrolled
-
Field Details
-
field_32397
private static final int field_32397- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official c
Ledi$a;c: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_32398
private static final int field_32398- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official d
Ledi$a;d: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_32399
private static final int field_32399- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official e
Ledi$a;e: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_32400
private static final int field_32400- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official f
Ledi$a;f: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_32401
private static final int field_32401- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official g
Ledi$a;g: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_32402
private static final int field_32402- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official h
Ledi$a;h: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_32403
private static final int field_32403- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official i
Ledi$a;i: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_32404
private static final int field_32404- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official j
Ledi$a;j: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
-
field_32405
- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official k
Ledi$a;k:Ljava/lang/String;
intermediary field_32405
Lnet/minecraft/class_521$class_4271;field_32405:Ljava/lang/String;
named field_32405
Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;field_32405:Ljava/lang/String;
-
widget
- Mappings:
Namespace Name Mixin selector official l
Ledi$a;l:Ledi;
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
Ledi$a;a:Ldvo;
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;
-
screen
- Mappings:
Namespace Name Mixin selector official b
Ledi$a;b:Leap;
intermediary field_25476
Lnet/minecraft/class_521$class_4271;field_25476:Lnet/minecraft/class_437;
named screen
Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;screen:Lnet/minecraft/client/gui/screen/Screen;
-
pack
- Mappings:
Namespace Name Mixin selector official m
Ledi$a;m:Ledg$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 n
Ledi$a;n:Lags;
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 o
Ledi$a;o:Ldxl;
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 p
Ledi$a;p:Lags;
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 q
Ledi$a;q:Ldxl;
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
-
ResourcePackEntry
public ResourcePackEntry(MinecraftClient client, PackListWidget widget, Screen screen, ResourcePackOrganizer.Pack pack)- Mappings:
Namespace Name Mixin selector official <init>
Ledi$a;<init>(Ldvo;Ledi;Leap;Ledg$a;)V
intermediary <init>
Lnet/minecraft/class_521$class_4271;<init>(Lnet/minecraft/class_310;Lnet/minecraft/class_521;Lnet/minecraft/class_437;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/Screen;Lnet/minecraft/client/gui/screen/pack/ResourcePackOrganizer$Pack;)V
-
-
Method Details
-
trimTextToWidth
- Mappings:
Namespace Name Mixin selector official a
Ledi$a;a(Ldvo;Los;)Lags;
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
Ledi$a;b(Ldvo;Los;)Ldxl;
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;
-
method_37006
- Specified by:
method_37006
in classAlwaysSelectedEntryListWidget.Entry<PackListWidget.ResourcePackEntry>
- Mappings:
Namespace Name Mixin selector official a
Ldxm$a;a()Los;
intermediary method_37006
Lnet/minecraft/class_4280$class_4281;method_37006()Lnet/minecraft/class_2561;
named method_37006
Lnet/minecraft/client/gui/widget/AlwaysSelectedEntryListWidget$Entry;method_37006()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:
render
in 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 a
Ldwv$a;a(Ldqk;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
-
isSelectable
private boolean isSelectable()- Mappings:
Namespace Name Mixin selector official b
Ledi$a;b()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
-
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.- 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:
Mouse.onMouseButton(long, int, int, int)
,GLFW.GLFW_MOUSE_BUTTON_1
- Mappings:
Namespace Name Mixin selector official a
Ldxx;a(DDI)Z
intermediary method_25402
Lnet/minecraft/class_364;method_25402(DDI)Z
named mouseClicked
Lnet/minecraft/client/gui/Element;mouseClicked(DDI)Z
-