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 -
Method Summary
Modifier and TypeMethodDescriptionfinal com.thecsdev.common.properties.NotNullProperty<net.minecraft.client.gui.Font> TheFontthisBGoalProgressBaruses to render text.final doublegetValue()Returns the value ofvalueProperty().final voidrenderCallback(@NotNull com.thecsdev.commonmc.api.client.gui.render.TGuiGraphics pencil) final voidsetValue(double value) Sets the value ofvalueProperty().protected final voidfinal com.thecsdev.common.properties.DoublePropertyThe 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, postRenderCallbackMethods 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, visiblePropertyMethods 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
-
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()TheFontthisBGoalProgressBaruses 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 ofvalueProperty(). -
setValue
public final void setValue(double value) Sets the value ofvalueProperty().- Parameters:
value- The new value, ranging from 0 to 1.
-
tickCallback
protected final void tickCallback()- Overrides:
tickCallbackin classcom.thecsdev.commonmc.api.client.gui.TElement
-
renderCallback
public final void renderCallback(@NotNull @NotNull com.thecsdev.commonmc.api.client.gui.render.TGuiGraphics pencil) - Specified by:
renderCallbackin interfacecom.thecsdev.common.scene.INodeRenderable<com.thecsdev.commonmc.api.client.gui.TElement, com.thecsdev.commonmc.api.client.gui.render.TGuiGraphics>- Overrides:
renderCallbackin classcom.thecsdev.commonmc.api.client.gui.misc.TFillColorElement
-