Class StatsScreen.StatList.StatEntry
java.lang.Object
net.minecraft.client.gui.components.ObjectSelectionList.Entry<StatsScreen.StatList.StatEntry>
dev.potota.itemstats.impl.client.screen.StatsScreen.StatList.StatEntry
- All Implemented Interfaces:
net.minecraft.client.gui.components.events.GuiEventListener,net.minecraft.client.gui.components.TabOrderedElement,net.minecraft.client.gui.narration.NarrationSupplier
- Enclosing class:
StatsScreen.StatList
public class StatsScreen.StatList.StatEntry
extends net.minecraft.client.gui.components.ObjectSelectionList.Entry<StatsScreen.StatList.StatEntry>
-
Field Summary
Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS -
Method Summary
Modifier and TypeMethodDescriptionintgetContentHeight(int height) intgetContentX(int x) intgetContentY(int y) intgetContentYMiddle(int entryY, int entryHeight) @NotNull net.minecraft.network.chat.Componentvoidrender(net.minecraft.client.gui.GuiGraphics graphics, int index, int top, int left, int width, int height, int mouseX, int mouseY, boolean hovering, float partialTick) withDecoration(int decoration) Methods inherited from class net.minecraft.client.gui.components.ObjectSelectionList.Entry
mouseClicked, updateNarrationMethods 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, getCurrentFocusPath, getRectangle, keyPressed, keyReleased, mouseDragged, mouseMoved, mouseReleased, mouseScrolled, nextFocusPathMethods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Method Details
-
getNarration
@NotNull public @NotNull net.minecraft.network.chat.Component getNarration()- Specified by:
getNarrationin classnet.minecraft.client.gui.components.ObjectSelectionList.Entry<StatsScreen.StatList.StatEntry>
-
withDecoration
-
render
public 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) -
getContentX
public int getContentX(int x) -
getContentY
public int getContentY(int y) -
getContentHeight
public int getContentHeight(int height) -
getContentYMiddle
public int getContentYMiddle(int entryY, int entryHeight)
-