java.lang.Object
io.github.thecsdev.tcdcommons.api.client.gui.TElement
io.github.thecsdev.tcdcommons.api.client.gui.widget.TClickableWidget
io.github.thecsdev.betterstats.api.client.gui.stats.widget.AbstractStatWidget<SUItemStat>
io.github.thecsdev.betterstats.api.client.gui.stats.widget.ItemStatWidget
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, io.github.thecsdev.tcdcommons.api.util.interfaces.IEnableStateProviderSetter

public class ItemStatWidget extends AbstractStatWidget<SUItemStat>
  • Nested Class Summary

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

    io.github.thecsdev.tcdcommons.api.client.gui.widget.TClickableWidget.TClickableWidgetEvent_Clicked

    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 final net.minecraft.client.gui.tooltip.Tooltip
     
    protected final net.minecraft.item.ItemStack
     
    static final int
     
    static final net.minecraft.text.Text
     
    static final net.minecraft.text.Text
     
    static final net.minecraft.text.Text
     
    static final net.minecraft.text.Text
     
    static final net.minecraft.text.Text
     
    static final net.minecraft.text.Text
     

    Fields inherited from class io.github.thecsdev.betterstats.api.client.gui.stats.widget.AbstractStatWidget

    backgroundColor, focusOutlineColor, outlineColor, stat

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

    BUTTON_TEXTURE_SLICE_SIZE, BUTTON_TEXTURES, eClicked, enabled, T_WIDGETS_TEXTURE

    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
    ItemStatWidget(int x, int y, int size, SUItemStat stat)
     
    ItemStatWidget(int x, int y, SUItemStat stat)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    input(io.github.thecsdev.tcdcommons.api.client.gui.util.TInputContext inputContext)
     
    void
    render(io.github.thecsdev.tcdcommons.api.client.gui.util.TDrawContext pencil)
     

    Methods inherited from class io.github.thecsdev.betterstats.api.client.gui.stats.widget.AbstractStatWidget

    getBackgroundColor, getFocusOutlineColor, getOutlineColor, getStat, onClick, postRender, setBackgroundColor, setFocusOutlineColor, setOutlineColor

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

    click, getEnabled, isFocusable, setEnabled

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

    canBeAddedTo, createContextMenu, getAlpha, getChildren, getHeight, getItemRenderer, getParent, getParentTElement, getParentTScreen, getTextRenderer, getTooltip, getTooltipPositioner, getWidth, getX, getY, getZIndex, getZOffset, isDragging, isEnabled, isEnabledAndVisible, 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, input, removeChild, removeChild
  • Field Details

    • SIZE

      public static final int SIZE
      See Also:
    • TEXT_STAT_MINED

      public static final net.minecraft.text.Text TEXT_STAT_MINED
    • TEXT_STAT_CRAFTED

      public static final net.minecraft.text.Text TEXT_STAT_CRAFTED
    • TEXT_STAT_PICKED_UP

      public static final net.minecraft.text.Text TEXT_STAT_PICKED_UP
    • TEXT_STAT_DROPPED

      public static final net.minecraft.text.Text TEXT_STAT_DROPPED
    • TEXT_STAT_USED

      public static final net.minecraft.text.Text TEXT_STAT_USED
    • TEXT_STAT_BROKEN

      public static final net.minecraft.text.Text TEXT_STAT_BROKEN
    • itemStack

      protected final net.minecraft.item.ItemStack itemStack
    • defaultTooltip

      protected final net.minecraft.client.gui.tooltip.Tooltip defaultTooltip
  • Constructor Details

  • Method Details

    • input

      public boolean input(io.github.thecsdev.tcdcommons.api.client.gui.util.TInputContext inputContext)
      Specified by:
      input in interface io.github.thecsdev.tcdcommons.api.client.gui.TParentElement
      Overrides:
      input in class AbstractStatWidget<SUItemStat>
    • render

      public void render(io.github.thecsdev.tcdcommons.api.client.gui.util.TDrawContext pencil)
      Specified by:
      render in interface io.github.thecsdev.tcdcommons.api.client.gui.TParentElement
      Overrides:
      render in class AbstractStatWidget<SUItemStat>