Uses of Class
io.github.mrtesz.teszcore.exceptions.IllegalNumberRangeException
Packages that use IllegalNumberRangeException
-
Uses of IllegalNumberRangeException in io.github.mrtesz.teszcore.util
Methods in io.github.mrtesz.teszcore.util that throw IllegalNumberRangeExceptionModifier and TypeMethodDescriptionstatic <T extends Number>
TConditions.checkRange(T num, T min, T max) Check if a number is in a range and throw an exception if notstatic <T extends Number>
TConditions.checkRange(T num, T min, T max, @Nullable String message) Check if a number is in a range and throw an exception if notstatic booleanChance.roll(double percent) Rolls a `boolean` of a provided percentagestatic booleanRolls a `boolean` of a provided percentage with a specified randomstatic booleanChance.roll(int percent) Rolls a percentagestatic booleanRolls a percentage with a specified random