Package net.minecraft.util
Interface RandomSource
- All Known Subinterfaces:
BitRandomSource
- All Known Implementing Classes:
LegacyRandomSource
,SingleThreadedRandomSource
,ThreadSafeLegacyRandomSource
,WorldgenRandom
,XoroshiroRandomSource
public interface RandomSource
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
consumeCount
(int p_216338_) static RandomSource
create()
static RandomSource
create
(long p_216336_) static RandomSource
static RandomSource
Deprecated.fork()
boolean
double
float
double
int
nextInt()
int
nextInt
(int p_216331_) default int
nextInt
(int p_216340_, int p_216341_) default int
nextIntBetweenInclusive
(int p_216333_, int p_216334_) long
nextLong()
void
setSeed
(long p_216342_) default double
triangle
(double p_216329_, double p_216330_)
-
Field Details
-
GAUSSIAN_SPREAD_FACTOR
Deprecated.- See Also:
-
-
Method Details
-
create
-
createThreadSafe
Deprecated. -
create
-
createNewThreadLocalInstance
-
fork
RandomSource fork() -
forkPositional
PositionalRandomFactory forkPositional() -
setSeed
void setSeed(long p_216342_) -
nextInt
int nextInt() -
nextInt
int nextInt(int p_216331_) -
nextIntBetweenInclusive
default int nextIntBetweenInclusive(int p_216333_, int p_216334_) -
nextLong
long nextLong() -
nextBoolean
boolean nextBoolean() -
nextFloat
float nextFloat() -
nextDouble
double nextDouble() -
nextGaussian
double nextGaussian() -
triangle
default double triangle(double p_216329_, double p_216330_) -
consumeCount
default void consumeCount(int p_216338_) -
nextInt
default int nextInt(int p_216340_, int p_216341_)
-