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, Widget
- Mappings:
Namespace Name named net/minecraft/client/gui/widget/EntryListWidget$Entryintermediary net/minecraft/class_350$class_351official gdj$a
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intstatic final int(package private) EntryListWidget<E> Deprecated.private intprivate intprivate int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidforEachChild(Consumer<ClickableWidget> consumer) intintintintintintintintintintgetWidth()intgetX()intgetY()booleanbooleanisMouseOver(double double2, double double3) Checks if the mouse position is within the bound of the element.abstract voidrender(DrawContext context, int mouseX, int mouseY, boolean hovered, float deltaTicks) Renders an entry in a list.voidsetFocused(boolean bool) voidsetHeight(int height) voidsetWidth(int width) voidsetX(int int2) voidsetY(int int2) 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, getBorder, getFocusedPath, getNavigationPath, isClickable, keyPressed, keyReleased, mouseClicked, mouseDragged, mouseMoved, mouseReleased, mouseScrolledMethods inherited from interface net.minecraft.client.gui.navigation.Navigable
getNavigationOrderMethods inherited from interface net.minecraft.client.gui.widget.Widget
setPosition
-
Field Details
-
PADDING
public static final int PADDING- See Also:
- Mappings:
Namespace Name Mixin selector named PADDINGLnet/minecraft/client/gui/widget/EntryListWidget$Entry;PADDING:Iintermediary field_62115Lnet/minecraft/class_350$class_351;field_62115:Iofficial hLgdj$a;h:I
-
x
private int x- Mappings:
Namespace Name Mixin selector named xLnet/minecraft/client/gui/widget/EntryListWidget$Entry;x:Iintermediary field_62111Lnet/minecraft/class_350$class_351;field_62111:Iofficial aLgdj$a;a:I
-
y
private int y- Mappings:
Namespace Name Mixin selector named yLnet/minecraft/client/gui/widget/EntryListWidget$Entry;y:Iintermediary field_62112Lnet/minecraft/class_350$class_351;field_62112:Iofficial bLgdj$a;b:I
-
width
private int width- Mappings:
Namespace Name Mixin selector named widthLnet/minecraft/client/gui/widget/EntryListWidget$Entry;width:Iintermediary field_62113Lnet/minecraft/class_350$class_351;field_62113:Iofficial cLgdj$a;c:I
-
height
private int height- Mappings:
Namespace Name Mixin selector named heightLnet/minecraft/client/gui/widget/EntryListWidget$Entry;height:Iintermediary field_62114Lnet/minecraft/class_350$class_351;field_62114:Iofficial dLgdj$a;d:I
-
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 eLgdj$a;e:Lgdj;
-
-
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_25365Lgdj$a;method_25365(Z)V
-
isFocused
public boolean isFocused() -
render
public abstract void render(DrawContext context, int mouseX, int mouseY, boolean hovered, float deltaTicks) Renders an entry in a list.- Mappings:
Namespace Name Mixin selector named renderLnet/minecraft/client/gui/widget/EntryListWidget$Entry;render(Lnet/minecraft/client/gui/DrawContext;IIZF)Vintermediary method_25343Lnet/minecraft/class_350$class_351;method_25343(Lnet/minecraft/class_332;IIZF)Vofficial aLgdj$a;a(Lgdd;IIZF)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_25405Lgdj$a;method_25405(DD)Z
-
setX
public void setX(int int2) -
setY
public void setY(int int2) -
setWidth
public void setWidth(int width) - Mappings:
Namespace Name Mixin selector named setWidthLnet/minecraft/client/gui/widget/EntryListWidget$Entry;setWidth(I)Vintermediary method_73381Lnet/minecraft/class_350$class_351;method_73381(I)Vofficial hLgdj$a;h(I)V
-
setHeight
public void setHeight(int height) - Mappings:
Namespace Name Mixin selector named setHeightLnet/minecraft/client/gui/widget/EntryListWidget$Entry;setHeight(I)Vintermediary method_73383Lnet/minecraft/class_350$class_351;method_73383(I)Vofficial iLgdj$a;i(I)V
-
getContentX
public int getContentX()- Mappings:
Namespace Name Mixin selector named getContentXLnet/minecraft/client/gui/widget/EntryListWidget$Entry;getContentX()Iintermediary method_73380Lnet/minecraft/class_350$class_351;method_73380()Iofficial dLgdj$a;d()I
-
getContentY
public int getContentY()- Mappings:
Namespace Name Mixin selector named getContentYLnet/minecraft/client/gui/widget/EntryListWidget$Entry;getContentY()Iintermediary method_73382Lnet/minecraft/class_350$class_351;method_73382()Iofficial hLgdj$a;h()I
-
getContentHeight
public int getContentHeight()- Mappings:
Namespace Name Mixin selector named getContentHeightLnet/minecraft/client/gui/widget/EntryListWidget$Entry;getContentHeight()Iintermediary method_73384Lnet/minecraft/class_350$class_351;method_73384()Iofficial iLgdj$a;i()I
-
getContentMiddleY
public int getContentMiddleY()- Mappings:
Namespace Name Mixin selector named getContentMiddleYLnet/minecraft/client/gui/widget/EntryListWidget$Entry;getContentMiddleY()Iintermediary method_73385Lnet/minecraft/class_350$class_351;method_73385()Iofficial jLgdj$a;j()I
-
getContentBottomEnd
public int getContentBottomEnd()- Mappings:
Namespace Name Mixin selector named getContentBottomEndLnet/minecraft/client/gui/widget/EntryListWidget$Entry;getContentBottomEnd()Iintermediary method_73386Lnet/minecraft/class_350$class_351;method_73386()Iofficial kLgdj$a;k()I
-
getContentWidth
public int getContentWidth()- Mappings:
Namespace Name Mixin selector named getContentWidthLnet/minecraft/client/gui/widget/EntryListWidget$Entry;getContentWidth()Iintermediary method_73387Lnet/minecraft/class_350$class_351;method_73387()Iofficial lLgdj$a;l()I
-
getContentMiddleX
public int getContentMiddleX()- Mappings:
Namespace Name Mixin selector named getContentMiddleXLnet/minecraft/client/gui/widget/EntryListWidget$Entry;getContentMiddleX()Iintermediary method_73388Lnet/minecraft/class_350$class_351;method_73388()Iofficial mLgdj$a;m()I
-
getContentRightEnd
public int getContentRightEnd()- Mappings:
Namespace Name Mixin selector named getContentRightEndLnet/minecraft/client/gui/widget/EntryListWidget$Entry;getContentRightEnd()Iintermediary method_73389Lnet/minecraft/class_350$class_351;method_73389()Iofficial nLgdj$a;n()I
-
getX
public int getX() -
getY
public int getY() -
getWidth
public int getWidth() -
getHeight
public int getHeight() -
forEachChild
- Specified by:
forEachChildin interfaceWidget- Mappings:
Namespace Name Mixin selector named forEachChildLnet/minecraft/client/gui/widget/EntryListWidget$Entry;forEachChild(Ljava/util/function/Consumer;)Vintermediary method_48206Lnet/minecraft/class_350$class_351;method_48206(Ljava/util/function/Consumer;)Vofficial method_48206Lgdj$a;method_48206(Ljava/util/function/Consumer;)V
-