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>
- Direct Known Subclasses:
AlwaysSelectedEntryListWidget.Entry,ElementListWidget.Entry
- Enclosing class:
EntryListWidget<E extends EntryListWidget.Entry<E>>
@Environment(CLIENT)
protected abstract static class EntryListWidget.Entry<E extends EntryListWidget.Entry<E>>
extends Object
implements Element
- Mappings:
Namespace Name named net/minecraft/client/gui/widget/EntryListWidget$Entryintermediary net/minecraft/class_350$class_351official fih$a
-
Field Summary
FieldsFields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddrawBorder(DrawContext context, int index, int y, int x, int entryWidth, int entryHeight, int mouseX, int mouseY, boolean hovered, float tickDelta) booleanbooleanisMouseOver(double double2, double double3) Checks if the mouse position is within the bound of the element.abstract voidrender(DrawContext context, int index, int y, int x, int entryWidth, int entryHeight, int mouseX, int mouseY, boolean hovered, float tickDelta) Renders an entry in a list.voidsetFocused(boolean bool) 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
charTyped, getFocusedPath, getNavigationFocus, getNavigationPath, keyPressed, keyReleased, mouseClicked, mouseDragged, mouseMoved, mouseReleased, mouseScrolledMethods inherited from interface net.minecraft.client.gui.navigation.Navigable
getNavigationOrder
-
Field Details
-
parentList
Deprecated.- Mappings:
Namespace Name Mixin selector named parentListLnet/minecraft/client/gui/widget/EntryListWidget$Entry;parentList:Lnet/minecraft/client/gui/widget/EntryListWidget;intermediary field_22752Lnet/minecraft/class_350$class_351;field_22752:Lnet/minecraft/class_350;official aLfih$a;a:Lfih;
-
-
Constructor Details
-
Entry
protected Entry()
-
-
Method Details
-
setFocused
public void setFocused(boolean bool) - Specified by:
setFocusedin interfaceElement- Mappings:
Namespace Name Mixin selector named setFocusedLnet/minecraft/client/gui/widget/EntryListWidget$Entry;setFocused(Z)Vintermediary method_25365Lnet/minecraft/class_350$class_351;method_25365(Z)Vofficial method_25365Lfih$a;method_25365(Z)V
-
isFocused
public boolean isFocused() -
render
public abstract void render(DrawContext context, 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:
index- 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 named renderLnet/minecraft/client/gui/widget/EntryListWidget$Entry;render(Lnet/minecraft/client/gui/DrawContext;IIIIIIIZF)Vintermediary method_25343Lnet/minecraft/class_350$class_351;method_25343(Lnet/minecraft/class_332;IIIIIIIZF)Vofficial aLfih$a;a(Lfhz;IIIIIIIZF)V
-
drawBorder
public void drawBorder(DrawContext context, int index, int y, int x, int entryWidth, int entryHeight, int mouseX, int mouseY, boolean hovered, float tickDelta) - Mappings:
Namespace Name Mixin selector named drawBorderLnet/minecraft/client/gui/widget/EntryListWidget$Entry;drawBorder(Lnet/minecraft/client/gui/DrawContext;IIIIIIIZF)Vintermediary method_49568Lnet/minecraft/class_350$class_351;method_49568(Lnet/minecraft/class_332;IIIIIIIZF)Vofficial bLfih$a;b(Lfhz;IIIIIIIZF)V
-
isMouseOver
public boolean isMouseOver(double double2, double double3) Description copied from interface:ElementChecks if the mouse position is within the bound of the element.- Specified by:
isMouseOverin interfaceElement- Parameters:
double2- the X coordinate of the mousedouble3- the Y coordinate of the mouse- Returns:
trueif the mouse is within the bound of the element, otherwisefalse- Mappings:
Namespace Name Mixin selector named isMouseOverLnet/minecraft/client/gui/widget/EntryListWidget$Entry;isMouseOver(DD)Zintermediary method_25405Lnet/minecraft/class_350$class_351;method_25405(DD)Zofficial method_25405Lfih$a;method_25405(DD)Z
-