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>
-
Field Summary
Fields Modifier and Type Field Description protected MinecraftClient
client
private OrderedText
field_26590
private class_5489
field_26591
private OrderedText
field_26784
private class_5489
field_26785
private ResourcePackOrganizer.Pack
pack
protected Screen
screen
private PackListWidget
widget
-
Constructor Summary
Constructors Constructor Description ResourcePackEntry(MinecraftClient minecraftClient, 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 class_5489
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)
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
-
client
-
screen
-
pack
-
field_26590
-
field_26591
-
field_26784
-
field_26785
-
-
Constructor Details
-
ResourcePackEntry
public ResourcePackEntry(MinecraftClient minecraftClient, PackListWidget widget, Screen screen, ResourcePackOrganizer.Pack pack)
-
-
Method Details
-
method_31229
-
method_31230
-
render
public void render(MatrixStack matrices, int index, int y, int x, int entryWidth, int entryHeight, int mouseX, int mouseY, boolean hovered, float tickDelta)- Specified by:
render
in classEntryListWidget.Entry<PackListWidget.ResourcePackEntry>
-
isSelectable
private boolean isSelectable() -
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
-