Class BGoalProgressBar

java.lang.Object
com.thecsdev.common.scene.Node<com.thecsdev.commonmc.api.client.gui.TElement>
com.thecsdev.commonmc.api.client.gui.TElement
com.thecsdev.commonmc.api.client.gui.misc.TFillColorElement
com.thecsdev.betterstats.client.gui.widget.BGoalProgressBar
All Implemented Interfaces:
com.thecsdev.common.scene.INode<com.thecsdev.commonmc.api.client.gui.TElement>, com.thecsdev.common.scene.INodeBounded<com.thecsdev.commonmc.api.client.gui.TElement, com.thecsdev.common.math.Bounds2i>, com.thecsdev.common.scene.INodeRenderable<com.thecsdev.commonmc.api.client.gui.TElement, com.thecsdev.commonmc.api.client.gui.render.TGuiGraphics>, Iterable<com.thecsdev.commonmc.api.client.gui.TElement>, Collection<com.thecsdev.commonmc.api.client.gui.TElement>

@Environment(CLIENT) @Internal public final class BGoalProgressBar extends com.thecsdev.commonmc.api.client.gui.misc.TFillColorElement
Visual progress-bar widget commonly used by StatsViewGoals.
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.thecsdev.commonmc.api.client.gui.misc.TFillColorElement

    com.thecsdev.commonmc.api.client.gui.misc.TFillColorElement.Flat
  • Field Summary

    Fields inherited from class com.thecsdev.commonmc.api.client.gui.TElement

    eInitialized
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    BGoalProgressBar(double progress)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    final com.thecsdev.common.properties.NotNullProperty<net.minecraft.client.gui.Font>
    The Font this BGoalProgressBar uses to render text.
    final double
    Returns the value of valueProperty().
    final void
    renderCallback(@NotNull com.thecsdev.commonmc.api.client.gui.render.TGuiGraphics pencil)
     
    final void
    setValue(double value)
    Sets the value of valueProperty().
    protected final void
     
    final com.thecsdev.common.properties.DoubleProperty
    The visual progress value of this progress-bar widget, ranging from 0 to 1.

    Methods inherited from class com.thecsdev.commonmc.api.client.gui.misc.TFillColorElement

    fillColorProperty, outlineColorProperty, postRenderCallback

    Methods inherited from class com.thecsdev.commonmc.api.client.gui.TElement

    addRel, boundsProperty, clearAndInit, clipsDescendantsProperty, contextMenuProperty, dragEndCallback, dragStartCallback, findElementAt, focusableProperty, focusGainedCallback, focusLostCallback, forEachVisible, getBaseType, getBounds, getClient, getContentBounds, getCursor, getSelf, getTooltip, hoverableProperty, hoverGainedCallback, hoverLostCallback, initCallback, inputCallback, invalidateTooltipCache, isFocusable, isFocused, isHoverable, isHovered, isHoveredOrFocused, isVisible, move, moveChildren, moveTo, removeRel, screenProperty, setBounds, setBounds, setBounds, showContextMenu, tooltipProperty, toString, visibleProperty

    Methods inherited from class com.thecsdev.common.scene.Node

    add, addAll, childAddedCallback, childRemovedCallback, clear, contains, containsAll, equals, findChild, findParent, findSibling, forEach, get, getFirst, getLast, getParent, hashCode, indexOf, isEmpty, iterator, parentProperty, remove, remove, remove, removeAll, retainAll, rootProperty, size, toArray, toArray

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface Iterable

    forEach
  • Constructor Details

    • BGoalProgressBar

      public BGoalProgressBar()
    • BGoalProgressBar

      public BGoalProgressBar(double progress)
  • Method Details

    • fontProperty

      public final com.thecsdev.common.properties.NotNullProperty<net.minecraft.client.gui.Font> fontProperty()
      The Font this BGoalProgressBar uses to render text.
    • valueProperty

      public final com.thecsdev.common.properties.DoubleProperty valueProperty()
      The visual progress value of this progress-bar widget, ranging from 0 to 1.
    • getValue

      public final double getValue()
      Returns the value of valueProperty().
    • setValue

      public final void setValue(double value)
      Sets the value of valueProperty().
      Parameters:
      value - The new value, ranging from 0 to 1.
    • tickCallback

      protected final void tickCallback()
      Overrides:
      tickCallback in class com.thecsdev.commonmc.api.client.gui.TElement
    • renderCallback

      public final void renderCallback(@NotNull @NotNull com.thecsdev.commonmc.api.client.gui.render.TGuiGraphics pencil)
      Specified by:
      renderCallback in interface com.thecsdev.common.scene.INodeRenderable<com.thecsdev.commonmc.api.client.gui.TElement, com.thecsdev.commonmc.api.client.gui.render.TGuiGraphics>
      Overrides:
      renderCallback in class com.thecsdev.commonmc.api.client.gui.misc.TFillColorElement