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 MinecraftClientclientprivate OrderedTextfield_26590private class_5489field_26591private OrderedTextfield_26784private class_5489field_26785private ResourcePackOrganizer.Packpackprotected Screenscreenprivate PackListWidgetwidget -
Constructor Summary
Constructors Constructor Description ResourcePackEntry(MinecraftClient minecraftClient, PackListWidget widget, Screen screen, ResourcePackOrganizer.Pack pack) -
Method Summary
Modifier and Type Method Description private booleanisSelectable()private static OrderedTextmethod_31229(MinecraftClient minecraftClient, Text text)private static class_5489method_31230(MinecraftClient minecraftClient, Text text)booleanmouseClicked(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)Methods inherited from class net.minecraft.client.gui.widget.AlwaysSelectedEntryListWidget.Entry
changeFocusMethods inherited from class net.minecraft.client.gui.widget.EntryListWidget.Entry
isMouseOverMethods 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, 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:
renderin 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 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:
Mouse.onMouseButton(long, int, int, int),GLFW.GLFW_MOUSE_BUTTON_1
-