Class AbstractSelectionList.Entry<E extends AbstractSelectionList.Entry<E>>
java.lang.Object
net.minecraft.client.gui.components.AbstractSelectionList.Entry<E>
- All Implemented Interfaces:
GuiEventListener, TabOrderedElement, LayoutElement
- Direct Known Subclasses:
ContainerObjectSelectionList.Entry, ObjectSelectionList.Entry
- Enclosing class:
AbstractSelectionList<E extends AbstractSelectionList.Entry<E>>
protected abstract static class AbstractSelectionList.Entry<E extends AbstractSelectionList.Entry<E>>
extends Object
implements LayoutElement, GuiEventListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intprivate intprotected AbstractSelectionList<E> Deprecated.private intprivate intprivate int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidextractContent(GuiGraphicsExtractor graphics, int mouseX, int mouseY, boolean hovered, float a) intintintintintintintintintintgetWidth()intgetX()intgetY()booleanbooleanisMouseOver(double mx, double my) voidsetFocused(boolean focused) voidsetHeight(int height) voidsetWidth(int width) voidsetX(int x) voidsetY(int y) voidvisitWidgets(Consumer<AbstractWidget> widgetVisitor) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface GuiEventListener
charTyped, getBorderForArrowNavigation, getCurrentFocusPath, keyPressed, keyReleased, mouseClicked, mouseDragged, mouseMoved, mouseReleased, mouseScrolled, nextFocusPath, preeditUpdated, shouldTakeFocusAfterInteractionMethods inherited from interface LayoutElement
setPositionMethods inherited from interface TabOrderedElement
getTabOrderGroup
-
Field Details
-
CONTENT_PADDING
public static final int CONTENT_PADDING- See Also:
-
x
private int x -
y
private int y -
width
private int width -
height
private int height -
list
Deprecated.
-
-
Constructor Details
-
Entry
protected Entry()
-
-
Method Details
-
setFocused
public void setFocused(boolean focused) - Specified by:
setFocusedin interfaceGuiEventListener
-
isFocused
public boolean isFocused()- Specified by:
isFocusedin interfaceGuiEventListener
-
extractContent
public abstract void extractContent(GuiGraphicsExtractor graphics, int mouseX, int mouseY, boolean hovered, float a) -
isMouseOver
public boolean isMouseOver(double mx, double my) - Specified by:
isMouseOverin interfaceGuiEventListener
-
setX
public void setX(int x) - Specified by:
setXin interfaceLayoutElement
-
setY
public void setY(int y) - Specified by:
setYin interfaceLayoutElement
-
setWidth
public void setWidth(int width) -
setHeight
public void setHeight(int height) -
getContentX
public int getContentX() -
getContentY
public int getContentY() -
getContentHeight
public int getContentHeight() -
getContentYMiddle
public int getContentYMiddle() -
getContentBottom
public int getContentBottom() -
getContentWidth
public int getContentWidth() -
getContentXMiddle
public int getContentXMiddle() -
getContentRight
public int getContentRight() -
getX
public int getX()- Specified by:
getXin interfaceLayoutElement
-
getY
public int getY()- Specified by:
getYin interfaceLayoutElement
-
getWidth
public int getWidth()- Specified by:
getWidthin interfaceLayoutElement
-
getHeight
public int getHeight()- Specified by:
getHeightin interfaceLayoutElement
-
visitWidgets
- Specified by:
visitWidgetsin interfaceLayoutElement
-
getRectangle
- Specified by:
getRectanglein interfaceGuiEventListener- Specified by:
getRectanglein interfaceLayoutElement
-