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 GuiEventListener, LayoutElement
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intprivate intprotected AbstractSelectionList<E> Deprecated.private intprivate intprivate int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintintintintintintintintintgetWidth()intgetX()intgetY()booleanbooleanisMouseOver(double pMouseX, double pMouseY) Checks if the given mouse coordinates are over the GUI element.abstract voidrenderContent(GuiGraphics pGuiGraphics, int pMouseX, int pMouseY, boolean pIsHovering, float pPartialTick) voidsetFocused(boolean p_265302_) Sets the focus state of the GUI element.voidsetHeight(int pHeight) voidsetWidth(int pWidth) voidsetX(int p_439711_) voidsetY(int p_439000_) voidvisitWidgets(Consumer<AbstractWidget> p_439025_) 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.components.events.GuiEventListener
charTyped, getBorderForArrowNavigation, getCurrentFocusPath, keyPressed, keyReleased, mouseClicked, mouseDragged, mouseMoved, mouseReleased, mouseScrolled, nextFocusPath, shouldTakeFocusAfterInteractionMethods inherited from interface net.minecraft.client.gui.layouts.LayoutElement
setPositionMethods inherited from interface net.minecraft.client.gui.components.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 p_265302_) Description copied from interface:GuiEventListenerSets the focus state of the GUI element.- Specified by:
setFocusedin interfaceGuiEventListener- Parameters:
p_265302_-trueto apply focus,falseto remove focus
-
isFocused
public boolean isFocused()- Specified by:
isFocusedin interfaceGuiEventListener
-
renderContent
public abstract void renderContent(GuiGraphics pGuiGraphics, int pMouseX, int pMouseY, boolean pIsHovering, float pPartialTick) -
isMouseOver
public boolean isMouseOver(double pMouseX, double pMouseY) Description copied from interface:GuiEventListenerChecks if the given mouse coordinates are over the GUI element.- Specified by:
isMouseOverin interfaceGuiEventListener- Parameters:
pMouseX- the X coordinate of the mouse.pMouseY- the Y coordinate of the mouse.- Returns:
trueif the mouse is over the GUI element,falseotherwise.
-
setX
public void setX(int p_439711_) - Specified by:
setXin interfaceLayoutElement
-
setY
public void setY(int p_439000_) - Specified by:
setYin interfaceLayoutElement
-
setWidth
public void setWidth(int pWidth) -
setHeight
public void setHeight(int pHeight) -
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
-