Class StyledList.Entry<E extends StyledList.Entry<E>>
java.lang.Object
net.minecraft.client.gui.components.ContainerObjectSelectionList.Entry<E>
net.ixdarklord.coolcatcore.internal.config.client.gui.style.StyledList.Entry<E>
- All Implemented Interfaces:
net.minecraft.client.gui.components.events.ContainerEventHandler,net.minecraft.client.gui.components.events.GuiEventListener,net.minecraft.client.gui.components.TabOrderedElement
- Direct Known Subclasses:
ConfigEntryList.Entry
- Enclosing class:
StyledList<E extends StyledList.Entry<E>>
public abstract static class StyledList.Entry<E extends StyledList.Entry<E>>
extends net.minecraft.client.gui.components.ContainerObjectSelectionList.Entry<E>
A row, with its own height; the list sets its bounds as it lays the rows out.
-
Field Summary
Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintgetWidth()intgetX()intgetY()booleanisMouseOver(double mouseX, double mouseY) final voidrender(net.minecraft.client.gui.GuiGraphics graphics, int index, int top, int left, int width, int height, int mouseX, int mouseY, boolean hovering, float partialTick) abstract voidrenderContent(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY, boolean hovered, float partialTick) Draws the row within its bounds.Methods inherited from class net.minecraft.client.gui.components.ContainerObjectSelectionList.Entry
focusPathAtIndex, getFocused, isDragging, mouseClicked, narratables, nextFocusPath, setDragging, setFocusedMethods 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.ContainerEventHandler
charTyped, children, getChildAt, getCurrentFocusPath, isFocused, keyPressed, keyReleased, mouseDragged, mouseReleased, mouseScrolled, setFocusedMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
getRectangle, mouseMovedMethods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Constructor Details
-
Entry
public Entry()
-
-
Method Details
-
getX
public int getX() -
getY
public int getY() -
getWidth
public int getWidth() -
getHeight
public int getHeight() -
renderContent
public abstract void renderContent(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY, boolean hovered, float partialTick) Draws the row within its bounds. -
render
public final void render(net.minecraft.client.gui.GuiGraphics graphics, int index, int top, int left, int width, int height, int mouseX, int mouseY, boolean hovering, float partialTick) -
isMouseOver
public boolean isMouseOver(double mouseX, double mouseY) - Specified by:
isMouseOverin interfacenet.minecraft.client.gui.components.events.GuiEventListener
-