@Environment(value=CLIENT) public abstract static class EntryListWidget.Entry<E extends EntryListWidget.Entry<E>> extends Object implements Element
| Modifier and Type | Field and Description |
|---|---|
private EntryListWidget<E> |
list
Deprecated.
|
| Constructor and Description |
|---|
Entry() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isMouseOver(double mouseX,
double mouseY)
Checks if the mouse position is within the bound
of the element.
|
abstract 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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchangeFocus, charTyped, keyPressed, keyReleased, mouseClicked, mouseDragged, mouseMoved, mouseReleased, mouseScrolled@Deprecated private EntryListWidget<E extends EntryListWidget.Entry<E>> list
public abstract void render(MatrixStack matrices, int index, int y, int x, int entryWidth, int entryHeight, int mouseX, int mouseY, boolean hovered, float tickDelta)
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 entrypublic boolean isMouseOver(double mouseX,
double mouseY)
isMouseOver in interface ElementmouseX - the X coordinate of the mousemouseY - the Y coordinate of the mousetrue if the mouse is within the bound of the element, otherwise false