ProgressItem

abstract class ProgressItem @JvmOverloads constructor(material: Material, inverse: Boolean = false) : AbstractItem(source)

An item that counts down (by default) from a maximum durability, symbolising progress.

For example, this might be used in a custom furnace to show how much burn time is left on the current fuel. In this case, you'd want override totalTime and set it to the the total burn time of the fuel (eg: 80 seconds for coal), and then gradually increase progress as the remaining burn time decreased.

Parameters

material

The material to use for the item

inverse

If true, the progress bar will be inverted, meaning that 0.0 is full and 1.0 is empty.

Constructors

Link copied to clipboard
constructor(material: Material, inverse: Boolean = false)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
open val totalTime: Duration? = null

Functions

Link copied to clipboard
open override fun addWindow(p0: AbstractWindow)
Link copied to clipboard
Link copied to clipboard
open override fun getWindows(): MutableSet<Window>
Link copied to clipboard
open override fun handleClick(clickType: ClickType, player: Player, event: InventoryClickEvent)
Link copied to clipboard
open override fun notifyWindows()
Link copied to clipboard
open override fun removeWindow(p0: AbstractWindow)