Package-level declarations
Types
Link copied to clipboard
Link copied to clipboard
class PercentageChance<T : Number>(value: Value<T>, randomGetter: Supplier<out RandomGenerator>) : BooleanSupplier, ReadOnlyProperty<Any?, Boolean>
Link copied to clipboard
interface RefreshableFloatState
Link copied to clipboard
interface RefreshableIntState
Link copied to clipboard
Functions
Link copied to clipboard
Link copied to clipboard
fun ValueGroup.percentageChance(name: String, default: Float, range: ClosedFloatingPointRange<Float> = 0f..100f, randomGetter: Supplier<out RandomGenerator> = DEFAULT_RANDOM): PercentageChance<Float>
fun ValueGroup.percentageChance(name: String, default: Int, range: IntRange = 0..100, randomGetter: Supplier<out RandomGenerator> = DEFAULT_RANDOM): PercentageChance<Int>