Class PercentOrProgressBarDisplaySource
java.lang.Object
com.simibubi.create.api.behaviour.display.DisplaySource
com.simibubi.create.content.redstone.displayLink.source.SingleLineDisplaySource
com.simibubi.create.content.redstone.displayLink.source.NumericSingleLineDisplaySource
com.simibubi.create.content.redstone.displayLink.source.PercentOrProgressBarDisplaySource
- Direct Known Subclasses:
FillLevelDisplaySource,KineticStressDisplaySource,RedstonePowerDisplaySource
-
Field Summary
Fields inherited from class com.simibubi.create.content.redstone.displayLink.source.NumericSingleLineDisplaySource
ZEROFields inherited from class com.simibubi.create.api.behaviour.display.DisplaySource
BY_BLOCK, BY_BLOCK_ENTITY, EMPTY, EMPTY_LINE, WHITESPACE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected FlapDisplaySectioncreateSectionForValue(DisplayLinkContext context, int size) protected net.minecraft.network.chat.MutableComponentformatNumeric(DisplayLinkContext context, Float currentLevel) protected Stringprotected abstract @Nullable FloatgetProgress(DisplayLinkContext context) protected abstract booleanprogressBarActive(DisplayLinkContext context) protected net.minecraft.network.chat.MutableComponentprovideLine(DisplayLinkContext context, DisplayTargetStats stats) Methods inherited from class com.simibubi.create.content.redstone.displayLink.source.SingleLineDisplaySource
addLabelingTextBox, allowsLabeling, initConfigurationWidgets, loadFlapDisplayLayout, provideFlapDisplayText, provideTextMethods inherited from class com.simibubi.create.api.behaviour.display.DisplaySource
displaySource, get, getAll, getId, getName, getPassiveRefreshTicks, getTranslationKey, loadFlapDisplayLayout, onSignalReset, populateData, shouldPassiveReset, transferData
-
Constructor Details
-
PercentOrProgressBarDisplaySource
public PercentOrProgressBarDisplaySource()
-
-
Method Details
-
provideLine
protected net.minecraft.network.chat.MutableComponent provideLine(DisplayLinkContext context, DisplayTargetStats stats) - Specified by:
provideLinein classSingleLineDisplaySource
-
formatNumeric
protected net.minecraft.network.chat.MutableComponent formatNumeric(DisplayLinkContext context, Float currentLevel) -
getProgress
-
progressBarActive
-
getFlapDisplayLayoutName
- Overrides:
getFlapDisplayLayoutNamein classNumericSingleLineDisplaySource
-
createSectionForValue
- Overrides:
createSectionForValuein classNumericSingleLineDisplaySource
-