Class ProgressBarLayer
java.lang.Object
com.github.darksoulq.abyssallib.world.gui.layer.AbstractBarLayer
com.github.darksoulq.abyssallib.world.gui.layer.ProgressBarLayer
- All Implemented Interfaces:
GuiLayer
A standard implementation of a multi-slot progress bar.
This class provides public methods to manipulate the progress bar's fill and additional custom metadata strings for shader/model logic.
-
Constructor Summary
ConstructorsConstructorDescriptionProgressBarLayer(SlotPosition origin, StructureArray<Item> structure, StructureArray.Orientation orientation, int progressMax) Constructs a new ProgressBarLayer. -
Method Summary
Methods inherited from class AbstractBarLayer
cleanup, renderTo, setName, setProgress
-
Constructor Details
-
ProgressBarLayer
public ProgressBarLayer(SlotPosition origin, StructureArray<Item> structure, StructureArray.Orientation orientation, int progressMax) Constructs a new ProgressBarLayer.- Parameters:
origin- The top-left slot position.structure- The item templates for the bar.orientation- The direction progress moves (Horizontal/Vertical).progressMax- The number of sub-states per item model.
-
-
Method Details
-
setState
-
getState
-