Class XoroshiroRandomSource
java.lang.Object
net.minecraft.world.level.levelgen.XoroshiroRandomSource
- All Implemented Interfaces:
RandomSource
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final double
private static final float
private final MarsagliaPolarGaussian
private Xoroshiro128PlusPlus
Fields inherited from interface net.minecraft.util.RandomSource
GAUSSIAN_SPREAD_FACTOR
-
Constructor Summary
ConstructorDescriptionXoroshiroRandomSource
(long p_190102_) XoroshiroRandomSource
(long p_190104_, long p_190105_) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.util.RandomSource
nextInt, nextIntBetweenInclusive, triangle
-
Field Details
-
FLOAT_UNIT
private static final float FLOAT_UNIT- See Also:
-
DOUBLE_UNIT
private static final double DOUBLE_UNIT- See Also:
-
randomNumberGenerator
-
gaussianSource
-
-
Constructor Details
-
XoroshiroRandomSource
public XoroshiroRandomSource(long p_190102_) -
XoroshiroRandomSource
public XoroshiroRandomSource(long p_190104_, long p_190105_)
-
-
Method Details
-
fork
- Specified by:
fork
in interfaceRandomSource
-
forkPositional
- Specified by:
forkPositional
in interfaceRandomSource
-
setSeed
public void setSeed(long p_190121_) - Specified by:
setSeed
in interfaceRandomSource
-
nextInt
public int nextInt()- Specified by:
nextInt
in interfaceRandomSource
-
nextInt
public int nextInt(int p_190118_) - Specified by:
nextInt
in interfaceRandomSource
-
nextLong
public long nextLong()- Specified by:
nextLong
in interfaceRandomSource
-
nextBoolean
public boolean nextBoolean()- Specified by:
nextBoolean
in interfaceRandomSource
-
nextFloat
public float nextFloat()- Specified by:
nextFloat
in interfaceRandomSource
-
nextDouble
public double nextDouble()- Specified by:
nextDouble
in interfaceRandomSource
-
nextGaussian
public double nextGaussian()- Specified by:
nextGaussian
in interfaceRandomSource
-
consumeCount
public void consumeCount(int p_190111_) - Specified by:
consumeCount
in interfaceRandomSource
-
nextBits
private long nextBits(int p_190108_)
-