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