CommandAPI 9.6.0
An API for the command UI introduced in Minecraft 1.13
|
A class representing a range of floats. More...
Public Member Functions | |
FloatRange (float low, float high) | |
Constructs a FloatRange with a lower bound and an upper bound. More... | |
float | getLowerBound () |
The lower bound of this range. More... | |
float | getUpperBound () |
The upper bound of this range. More... | |
boolean | isInRange (float f) |
Determines if a float is within range of the lower bound (inclusive) and the upper bound (inclusive). More... | |
String | toString () |
Converts this FloatRange to a Minecraft string for use with arguments. More... | |
int | hashCode () |
boolean | equals (Object obj) |
Static Public Member Functions | |
static FloatRange | floatRangeGreaterThanOrEq (float min) |
Constructs a FloatRange with a given lower bound and no upper bound. More... | |
static FloatRange | floatRangeLessThanOrEq (float max) |
Constructs a FloatRange with a given upper bound and no lower bound. More... | |
A class representing a range of floats.
dev.jorel.commandapi.wrappers.FloatRange.FloatRange | ( | float | low, |
float | high | ||
) |
Constructs a FloatRange 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 FloatRange with a given lower bound and no upper bound.
min | the lower bound of this range |
|
static |
Constructs a FloatRange with a given upper bound and no lower bound.
max | the upper bound of this range |
float dev.jorel.commandapi.wrappers.FloatRange.getLowerBound | ( | ) |
The lower bound of this range.
float dev.jorel.commandapi.wrappers.FloatRange.getUpperBound | ( | ) |
The upper bound of this range.
boolean dev.jorel.commandapi.wrappers.FloatRange.isInRange | ( | float | f | ) |
Determines if a float is within range of the lower bound (inclusive) and the upper bound (inclusive).
f | the float to check within range |
String dev.jorel.commandapi.wrappers.FloatRange.toString | ( | ) |
Converts this FloatRange to a Minecraft string for use with arguments.