|
CommandAPI 11.1.0
An API for the command UI introduced in Minecraft 1.13
|
A class representing a range of doubles. More...
Public Member Functions | |
| DoubleRange (double low, double high) | |
| Constructs a DoubleRange with a lower bound and an upper bound. More... | |
| double | getLowerBound () |
| The lower bound of this range. More... | |
| double | getUpperBound () |
| The upper bound of this range. More... | |
| boolean | isInRange (double f) |
| Determines if a double is within range of the lower bound (inclusive) and the upper bound (inclusive). More... | |
| String | toString () |
| Converts this DoubleRange to a Minecraft string for use with arguments. More... | |
| int | hashCode () |
| boolean | equals (Object obj) |
Static Public Member Functions | |
| static DoubleRange | doubleRangeGreaterThanOrEq (double min) |
| Constructs a DoubleRange with a given lower bound and no upper bound. More... | |
| static DoubleRange | doubleRangeLessThanOrEq (double max) |
| Constructs a DoubleRange with a given upper bound and no lower bound. More... | |
A class representing a range of doubles.
| dev.jorel.commandapi.wrappers.DoubleRange.DoubleRange | ( | double | low, |
| double | high | ||
| ) |
Constructs a DoubleRange with a lower bound and an upper bound.
| low | the lower bound of this range |
| high | the upper bound of this range |
|
static |
Constructs a DoubleRange with a given lower bound and no upper bound.
| min | the lower bound of this range |
|
static |
Constructs a DoubleRange with a given upper bound and no lower bound.
| max | the upper bound of this range |
| double dev.jorel.commandapi.wrappers.DoubleRange.getLowerBound | ( | ) |
The lower bound of this range.
| double dev.jorel.commandapi.wrappers.DoubleRange.getUpperBound | ( | ) |
The upper bound of this range.
| boolean dev.jorel.commandapi.wrappers.DoubleRange.isInRange | ( | double | f | ) |
Determines if a double is within range of the lower bound (inclusive) and the upper bound (inclusive).
| f | the double to check within range |
| String dev.jorel.commandapi.wrappers.DoubleRange.toString | ( | ) |
Converts this DoubleRange to a Minecraft string for use with arguments.