Class PercentOrProgressBarDisplaySource
java.lang.Object
com.simibubi.create.content.logistics.block.display.DisplayBehaviour
com.simibubi.create.content.logistics.block.display.source.DisplaySource
com.simibubi.create.content.logistics.block.display.source.SingleLineDisplaySource
com.simibubi.create.content.logistics.block.display.source.NumericSingleLineDisplaySource
com.simibubi.create.content.logistics.block.display.source.PercentOrProgressBarDisplaySource
- Direct Known Subclasses:
FillLevelDisplaySource,KineticStressDisplaySource,RedstonePowerDisplaySource
-
Field Summary
Fields inherited from class com.simibubi.create.content.logistics.block.display.source.NumericSingleLineDisplaySource
ZEROFields inherited from class com.simibubi.create.content.logistics.block.display.source.DisplaySource
EMPTY, EMPTY_LINE, WHITESPACEFields inherited from class com.simibubi.create.content.logistics.block.display.DisplayBehaviour
id -
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 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.logistics.block.display.source.SingleLineDisplaySource
addLabelingTextBox, allowsLabeling, initConfigurationWidgets, loadFlapDisplayLayout, provideFlapDisplayText, provideTextMethods inherited from class com.simibubi.create.content.logistics.block.display.source.DisplaySource
getName, getPassiveRefreshTicks, getTranslationKey, loadFlapDisplayLayout, onSignalReset, populateData, 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
-