Package net.minecraft.client.gui.widget
Class EntryListWidget.Entry<E extends EntryListWidget.Entry<E>>
java.lang.Object
net.minecraft.client.gui.widget.EntryListWidget.Entry<E>
- All Implemented Interfaces:
Element
- Direct Known Subclasses:
AlwaysSelectedEntryListWidget.Entry
,ElementListWidget.Entry
- Enclosing class:
- EntryListWidget<E extends EntryListWidget.Entry<E>>
@Environment(CLIENT) public abstract static class EntryListWidget.Entry<E extends EntryListWidget.Entry<E>> extends Object implements Element
-
Field Summary
Fields Modifier and Type Field Description private EntryListWidget<E>
list
Deprecated. -
Constructor Summary
Constructors Constructor Description Entry()
-
Method Summary
Modifier and Type Method 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)
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
changeFocus, charTyped, keyPressed, keyReleased, mouseClicked, mouseDragged, mouseMoved, mouseReleased, mouseScrolled
-
Field Details
-
list
Deprecated.
-
-
Constructor Details
-
Entry
public Entry()
-
-
Method Details
-
render
public abstract void render(MatrixStack matrices, int index, int y, int x, int entryWidth, int entryHeight, int mouseX, int mouseY, boolean hovered, float tickDelta) -
isMouseOver
public boolean isMouseOver(double mouseX, double mouseY)Checks if the mouse position is within the bound of the element.- Specified by:
isMouseOver
in interfaceElement
- Parameters:
mouseX
- the X coordinate of the mousemouseY
- the Y coordinate of the mouse- Returns:
true
if the mouse is within the bound of the element, otherwisefalse
-