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
- Mappings:
Namespace Name official dwv$aintermediary net/minecraft/class_350$class_351named net/minecraft/client/gui/widget/EntryListWidget$Entry
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisMouseOver(double mouseX, double mouseY)Checks if the mouse position is within the bound of the element.abstract voidrender(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.Methods 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
changeFocus, charTyped, keyPressed, keyReleased, mouseClicked, mouseDragged, mouseMoved, mouseReleased, mouseScrolled
-
Field Details
-
parentList
Deprecated.- Mappings:
Namespace Name Mixin selector official aLdwv$a;a:Ldwv;intermediary field_22752Lnet/minecraft/class_350$class_351;field_22752:Lnet/minecraft/class_350;named parentListLnet/minecraft/client/gui/widget/EntryListWidget$Entry;parentList:Lnet/minecraft/client/gui/widget/EntryListWidget;
-
-
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)Renders an entry in a list.- Parameters:
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 entry- Mappings:
Namespace Name Mixin selector official aLdwv$a;a(Ldqk;IIIIIIIZF)Vintermediary method_25343Lnet/minecraft/class_350$class_351;method_25343(Lnet/minecraft/class_4587;IIIIIIIZF)Vnamed renderLnet/minecraft/client/gui/widget/EntryListWidget$Entry;render(Lnet/minecraft/client/util/math/MatrixStack;IIIIIIIZF)V
-
isMouseOver
public boolean isMouseOver(double mouseX, double mouseY)Checks if the mouse position is within the bound of the element.- Specified by:
isMouseOverin interfaceElement- Parameters:
mouseX- the X coordinate of the mousemouseY- the Y coordinate of the mouse- Returns:
trueif the mouse is within the bound of the element, otherwisefalse- Mappings:
Namespace Name Mixin selector official a_Ldxx;a_(DD)Zintermediary method_25405Lnet/minecraft/class_364;method_25405(DD)Znamed isMouseOverLnet/minecraft/client/gui/Element;isMouseOver(DD)Z
-