java.lang.Object
io.github.thecsdev.tcdcommons.api.client.gui.TElement
io.github.thecsdev.tcdcommons.api.client.gui.panel.TPanelElement
io.github.thecsdev.tcdcommons.api.client.gui.panel.TRefreshablePanelElement
io.github.thecsdev.betterstats.api.client.gui.panel.BSComponentPanel
io.github.thecsdev.betterstats.api.client.gui.stats.panel.StatsSummaryPanel
All Implemented Interfaces:
io.github.thecsdev.tcdcommons.api.client.gui.TParentElement, io.github.thecsdev.tcdcommons.api.client.util.interfaces.ITooltipProvider, io.github.thecsdev.tcdcommons.api.util.interfaces.IEnableStateProvider

public final class StatsSummaryPanel extends BSComponentPanel
A BSComponentPanel that summarizes given Collections of SUItemStats and SUMobStats.
  • Nested Class Summary

    Nested classes/interfaces inherited from class io.github.thecsdev.tcdcommons.api.client.gui.panel.TPanelElement

    io.github.thecsdev.tcdcommons.api.client.gui.panel.TPanelElement.TPanelElementEvent_Scrolled

    Nested classes/interfaces inherited from class io.github.thecsdev.tcdcommons.api.client.gui.TElement

    io.github.thecsdev.tcdcommons.api.client.gui.TElement.TElementEvent_ChildAR, io.github.thecsdev.tcdcommons.api.client.gui.TElement.TElementEvent_ContextMenu, io.github.thecsdev.tcdcommons.api.client.gui.TElement.TElementEvent_Moved, io.github.thecsdev.tcdcommons.api.client.gui.TElement.TElementEvent_ParentChanged, io.github.thecsdev.tcdcommons.api.client.gui.TElement.TElementEvent_Resized
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected int
     
    static final int
     

    Fields inherited from class io.github.thecsdev.betterstats.api.client.gui.panel.BSComponentPanel

    BS_WIDGETS_TEXTURE

    Fields inherited from class io.github.thecsdev.tcdcommons.api.client.gui.panel.TRefreshablePanelElement

    eRefreshed

    Fields inherited from class io.github.thecsdev.tcdcommons.api.client.gui.panel.TPanelElement

    backgroundColor, COLOR_BACKGROUND, COLOR_OUTLINE, COLOR_OUTLINE_FOCUSED, eScrolledHorizontally, eScrolledVertically, outlineColor, SCROLL_BOTH, SCROLL_HORIZONTAL, SCROLL_VERTICAL, scrollDragX, scrollDragY, scrollFlags, scrollPadding, scrollSensitivity, scrollVelocityX, scrollVelocityY, smoothScroll, smoothScrollSpeed, topmosts

    Fields inherited from class io.github.thecsdev.tcdcommons.api.client.gui.TElement

    alpha, eChildAdded, eChildRemoved, eContextMenu, eMoved, eParentChanged, eResized, height, SP_ALL, SP_INVOKE_EVENT, SP_MOVE_CHILDREN, SP_RELATIVE, SP_UPDATE_TOPMOST, SS_ALL, SS_INVOKE_EVENT, SS_UPDATE_TOPMOST, tooltip, tooltipPositioner, width, x, y, zOffset

    Fields inherited from interface io.github.thecsdev.tcdcommons.api.client.gui.TParentElement

    MAX_CHILD_NESTING_DEPTH
  • Constructor Summary

    Constructors
    Constructor
    Description
    StatsSummaryPanel(int x, int y, int width)
     
    StatsSummaryPanel(int x, int y, int width, int height)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    final void
    addEntry(@Nullable net.minecraft.text.Text left, @Nullable net.minecraft.text.Text right)
     
    final void
    addEntry(@Nullable net.minecraft.text.Text left, @Nullable net.minecraft.text.Text center, @Nullable net.minecraft.text.Text right)
     
    final void
    Resizes this StatsSummaryPanel to fit the children labels on the Y axis.
    final void
     
    protected final void
     
    final void
    setColumnCount(int columnCount)
    Sets the number of columns that will be used to summarize stats.
    final void
    Adds Textual entries to this StatsSummaryPanel that summarize a collection of SUItemStat's stats.
    final void
    Adds Textual entries to this StatsSummaryPanel that summarize a collection of SUMobStat's stats.

    Methods inherited from class io.github.thecsdev.tcdcommons.api.client.gui.panel.TRefreshablePanelElement

    refresh

    Methods inherited from class io.github.thecsdev.tcdcommons.api.client.gui.panel.TPanelElement

    __getHorizontalSeCnvElm, __getVerticalSeCnvElm, applyScrollDrag, getBackgroundColor, getHorizontalScrollAmount, getHorizontalScrollKnobSize01, getOutlineColor, getScrollFlags, getScrollPadding, getScrollSensitivity, getSmoothScroll, getVerticalScrollAmount, getVerticalScrollKnobSize01, hasScrollFlag, input, input, inputHorizontalScroll, inputScroll, inputScroll, inputSmoothScroll, inputSmoothScroll, inputVerticalScroll, isScrollable, postRender, render, renderSmoothScroll, scrollToChild, setBackgroundColor, setHorizontalScrollAmount, setOutlineColor, setScrollFlags, setScrollPadding, setScrollSensitivity, setSmoothScroll, setVerticalScrollAmount

    Methods inherited from class io.github.thecsdev.tcdcommons.api.client.gui.TElement

    canBeAddedTo, createContextMenu, getAlpha, getChildren, getEnabled, getHeight, getItemRenderer, getParent, getParentTElement, getParentTScreen, getTextRenderer, getTooltip, getTooltipPositioner, getWidth, getX, getY, getZIndex, getZOffset, isDragging, isEnabled, isEnabledAndVisible, isFocusable, isFocused, isFocusedOrHovered, isHoverable, isHovered, isVisible, move, moveChildren, next, previous, setAlpha, setPosition, setPosition, setSize, setSize, setTooltip, setZOffset, tick, toString

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface io.github.thecsdev.tcdcommons.api.client.gui.TParentElement

    addChild, addChild, clearChildren, findChild, findLastChild, findParent, findParentTElement, forEachChild, getEndX, getEndY, removeChild, removeChild
  • Field Details

    • ENTRY_HEIGHT

      public static final int ENTRY_HEIGHT
    • columnCount

      protected int columnCount
  • Constructor Details

    • StatsSummaryPanel

      public StatsSummaryPanel(int x, int y, int width)
    • StatsSummaryPanel

      public StatsSummaryPanel(int x, int y, int width, int height)
  • Method Details

    • setColumnCount

      public final void setColumnCount(int columnCount)
      Sets the number of columns that will be used to summarize stats.
    • clearEntries

      public final void clearEntries()
    • addEntry

      public final void addEntry(@Nullable @Nullable net.minecraft.text.Text left, @Nullable @Nullable net.minecraft.text.Text right)
    • addEntry

      public final void addEntry(@Nullable @Nullable net.minecraft.text.Text left, @Nullable @Nullable net.minecraft.text.Text center, @Nullable @Nullable net.minecraft.text.Text right)
    • summarizeItemStats

      public final void summarizeItemStats(Iterable<SUItemStat> itemStats)
      Adds Textual entries to this StatsSummaryPanel that summarize a collection of SUItemStat's stats.
    • summarizeMobStats

      public final void summarizeMobStats(Iterable<SUMobStat> mobStats)
      Adds Textual entries to this StatsSummaryPanel that summarize a collection of SUMobStat's stats.
    • init

      protected final void init()
      Specified by:
      init in class io.github.thecsdev.tcdcommons.api.client.gui.panel.TRefreshablePanelElement
    • autoHeight

      public final void autoHeight()
      Resizes this StatsSummaryPanel to fit the children labels on the Y axis.