Progress Item
open class ProgressItem @JvmOverloads constructor(item: Item, countDown: Boolean = true) : AbstractItem(source)
An item that counts down (or up if countDown is true) 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 setTotalTimeTicks 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.
Using any set methods on here will automatically update the item in any windows that contain it.
Parameters
item
The item to be displayed
count Down
If true, the progress bar will be inverted, meaning that 0.0 is full and 1.0 is empty.
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Sets how far through the totalTime we are
Link copied to clipboard
Sets how far through the totalTime we are
Link copied to clipboard
Sets how far through the totalTime we are
Link copied to clipboard
Link copied to clipboard