EnergyBar

class EnergyBar @JvmOverloads constructor(height: Int, energy: Provider<Long>, maxEnergy: Provider<Long>, getEnergyPlus: () -> Long, getEnergyMinus: () -> Long, item: NovaItem = DefaultGuiItems.BAR_RED) : VerticalBar

A multi-item gui component for displaying energy levels.

Constructors

Link copied to clipboard
constructor(height: Int, energyHolder: DefaultEnergyHolder, item: NovaItem = DefaultGuiItems.BAR_RED)
constructor(height: Int, energy: Provider<Long>, maxEnergy: Provider<Long>, getEnergyPlus: () -> Long, getEnergyMinus: () -> Long, item: NovaItem = DefaultGuiItems.BAR_RED)

Functions

Link copied to clipboard
open override fun get(): Item