Companion

Functions

Link copied to clipboard
fun of(amount: Double, max: Double): ResourceState

Returns state with the given current amount and max. Negative values are replaced with zero, since some plugins let the amount go below it.