| Modifier and Type | Field and Description |
|---|---|
boolean |
downwardBias |
static IntRange |
EMPTY_RANGE |
boolean |
gaussian |
int |
max |
int |
min |
static IntRange |
ONE |
static IntRange |
WHOLE_WORLD |
| Constructor and Description |
|---|
IntRange(int value) |
IntRange(int min,
int max) |
IntRange(int min,
int max,
boolean gaussian,
boolean downwardBias) |
IntRange(String value) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(int value)
Whether or not the given value is included in this range.
|
boolean |
empty() |
int |
rand(@NonNull net.daporkchop.lib.random.PRandom random)
Gets a random value within this
IntRange. |
int |
size() |
String |
toString() |
public static final IntRange EMPTY_RANGE
public static final IntRange ONE
public static final IntRange WHOLE_WORLD
public final int min
public final int max
public final boolean gaussian
public final boolean downwardBias
public IntRange(int min,
int max)
public IntRange(int min,
int max,
boolean gaussian,
boolean downwardBias)
public IntRange(String value)
public IntRange(int value)
public int rand(@NonNull
@NonNull net.daporkchop.lib.random.PRandom random)
IntRange.random - an instance of PRandom to use for generating random numbersIntRangepublic boolean empty()
IntRange is emptypublic int size()
IntRangepublic boolean contains(int value)
value - the value to checkCopyright © 2020. All rights reserved.