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 Type
    Method
    Description
    int
    getContentHeight(int height)
     
    int
    getContentX(int x)
     
    int
    getContentY(int y)
     
    int
    getContentYMiddle(int entryY, int entryHeight)
     
    @NotNull net.minecraft.network.chat.Component
     
    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)
     
    withDecoration(int decoration)
     

    Methods inherited from class net.minecraft.client.gui.components.ObjectSelectionList.Entry

    mouseClicked, updateNarration

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener

    charTyped, getCurrentFocusPath, getRectangle, keyPressed, keyReleased, mouseDragged, mouseMoved, mouseReleased, mouseScrolled, nextFocusPath

    Methods inherited from interface net.minecraft.client.gui.components.TabOrderedElement

    getTabOrderGroup
  • Method Details

    • getNarration

      @NotNull public @NotNull net.minecraft.network.chat.Component getNarration()
      Specified by:
      getNarration in class net.minecraft.client.gui.components.ObjectSelectionList.Entry<StatsScreen.StatList.StatEntry>
    • withDecoration

      public StatsScreen.StatList.StatEntry withDecoration(int decoration)
    • 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)