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
- Enclosing class:
- PackListWidget
@Environment(CLIENT) public static class PackListWidget.ResourcePackEntry extends AlwaysSelectedEntryListWidget.Entry<PackListWidget.ResourcePackEntry>
- Mappings:
Namespace Name official dxx$a
intermediary net/minecraft/class_521$class_4271
named net/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry
-
Field Summary
Fields Modifier and Type Field Description protected MinecraftClient
client
private OrderedText
field_26590
private MultilineText
field_26591
private OrderedText
field_26784
private MultilineText
field_26785
private ResourcePackOrganizer.Pack
pack
protected Screen
screen
private PackListWidget
widget
-
Constructor Summary
Constructors Constructor Description ResourcePackEntry(MinecraftClient client, PackListWidget widget, Screen screen, ResourcePackOrganizer.Pack pack)
-
Method Summary
Modifier and Type Method Description private boolean
isSelectable()
private static OrderedText
method_31229(MinecraftClient minecraftClient, Text text)
private static MultilineText
method_31230(MinecraftClient minecraftClient, Text text)
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.Methods inherited from class net.minecraft.client.gui.widget.AlwaysSelectedEntryListWidget.Entry
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
-
widget
- Mappings:
Namespace Name Mixin selector official c
Ldxx$a;c:Ldxx;
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
Ldxx$a;a:Ldqk;
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
Ldxx$a;b:Ldve;
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 d
Ldxx$a;d:Ldxv$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;
-
field_26590
- Mappings:
Namespace Name Mixin selector official e
Ldxx$a;e:Lafs;
intermediary field_26590
Lnet/minecraft/class_521$class_4271;field_26590:Lnet/minecraft/class_5481;
named field_26590
Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;field_26590:Lnet/minecraft/text/OrderedText;
-
field_26591
- Mappings:
Namespace Name Mixin selector official f
Ldxx$a;f:Ldsg;
intermediary field_26591
Lnet/minecraft/class_521$class_4271;field_26591:Lnet/minecraft/class_5489;
named field_26591
Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;field_26591:Lnet/minecraft/client/font/MultilineText;
-
field_26784
- Mappings:
Namespace Name Mixin selector official g
Ldxx$a;g:Lafs;
intermediary field_26784
Lnet/minecraft/class_521$class_4271;field_26784:Lnet/minecraft/class_5481;
named field_26784
Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;field_26784:Lnet/minecraft/text/OrderedText;
-
field_26785
- Mappings:
Namespace Name Mixin selector official h
Ldxx$a;h:Ldsg;
intermediary field_26785
Lnet/minecraft/class_521$class_4271;field_26785:Lnet/minecraft/class_5489;
named field_26785
Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;field_26785: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>
Ldxx$a;<init>(Ldqk;Ldxx;Ldve;Ldxv$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
-
method_31229
- Mappings:
Namespace Name Mixin selector official a
Ldxx$a;a(Ldqk;Loi;)Lafs;
intermediary method_31229
Lnet/minecraft/class_521$class_4271;method_31229(Lnet/minecraft/class_310;Lnet/minecraft/class_2561;)Lnet/minecraft/class_5481;
named method_31229
Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;method_31229(Lnet/minecraft/client/MinecraftClient;Lnet/minecraft/text/Text;)Lnet/minecraft/text/OrderedText;
-
method_31230
- Mappings:
Namespace Name Mixin selector official b
Ldxx$a;b(Ldqk;Loi;)Ldsg;
intermediary method_31230
Lnet/minecraft/class_521$class_4271;method_31230(Lnet/minecraft/class_310;Lnet/minecraft/class_2561;)Lnet/minecraft/class_5489;
named method_31230
Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;method_31230(Lnet/minecraft/client/MinecraftClient;Lnet/minecraft/text/Text;)Lnet/minecraft/client/font/MultilineText;
-
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
Ldrq$a;a(Ldlr;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 a
Ldxx$a;a()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
Ldst;a(DDI)Z
intermediary method_25402
Lnet/minecraft/class_364;method_25402(DDI)Z
named mouseClicked
Lnet/minecraft/client/gui/Element;mouseClicked(DDI)Z
-