public class MCRandom
extends java.lang.Object
implements crafttweaker.api.util.IRandom
| Constructor and Description |
|---|
MCRandom(java.util.Random random) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getRandomUUID() |
boolean |
nextBoolean() |
double |
nextDouble() |
double |
nextDouble(double minimum,
double maximum) |
float |
nextFloat() |
float |
nextFloat(float minimum,
float maximum) |
int |
nextInt() |
int |
nextInt(int bound) |
int |
nextInt(int minimum,
int maximum) |
void |
setSeed(long seed) |
public int nextInt()
nextInt in interface crafttweaker.api.util.IRandompublic int nextInt(int bound)
nextInt in interface crafttweaker.api.util.IRandompublic double nextDouble()
nextDouble in interface crafttweaker.api.util.IRandompublic float nextFloat()
nextFloat in interface crafttweaker.api.util.IRandompublic boolean nextBoolean()
nextBoolean in interface crafttweaker.api.util.IRandompublic int nextInt(int minimum,
int maximum)
nextInt in interface crafttweaker.api.util.IRandompublic float nextFloat(float minimum,
float maximum)
nextFloat in interface crafttweaker.api.util.IRandompublic double nextDouble(double minimum,
double maximum)
nextDouble in interface crafttweaker.api.util.IRandompublic java.lang.String getRandomUUID()
getRandomUUID in interface crafttweaker.api.util.IRandompublic void setSeed(long seed)
setSeed in interface crafttweaker.api.util.IRandom