@Environment(value=CLIENT) public static class PackListWidget.ResourcePackEntry extends AlwaysSelectedEntryListWidget.Entry<PackListWidget.ResourcePackEntry>
Modifier and Type | Field and 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 and Description |
---|
ResourcePackEntry(MinecraftClient minecraftClient,
PackListWidget widget,
Screen screen,
ResourcePackOrganizer.Pack pack) |
Modifier and Type | Method and 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) |
changeFocus
isMouseOver
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
charTyped, keyPressed, keyReleased, mouseDragged, mouseMoved, mouseReleased, mouseScrolled
private PackListWidget widget
protected final MinecraftClient client
protected final Screen screen
private final ResourcePackOrganizer.Pack pack
private final OrderedText field_26590
private final class_5489 field_26591
private final OrderedText field_26784
private final class_5489 field_26785
public ResourcePackEntry(MinecraftClient minecraftClient, PackListWidget widget, Screen screen, ResourcePackOrganizer.Pack pack)
private static OrderedText method_31229(MinecraftClient minecraftClient, Text text)
private static class_5489 method_31230(MinecraftClient minecraftClient, Text text)
public void render(MatrixStack matrices, int index, int y, int x, int entryWidth, int entryHeight, int mouseX, int mouseY, boolean hovered, float tickDelta)
render
in class EntryListWidget.Entry<PackListWidget.ResourcePackEntry>
private boolean isSelectable()
public boolean mouseClicked(double mouseX, double mouseY, int button)
GLFW
class.mouseX
- the X coordinate of the mousemouseY
- the Y coordinate of the mousebutton
- the mouse button numbertrue
to indicate that the event handling is successful/validMouse.onMouseButton(long, int, int, int)
,
GLFW.GLFW_MOUSE_BUTTON_1