Class SingleThreadedRandomSource
java.lang.Object
net.minecraft.world.level.levelgen.SingleThreadedRandomSource
- All Implemented Interfaces:
RandomSource
,BitRandomSource
-
Field Summary
Modifier and TypeFieldDescriptionprivate final MarsagliaPolarGaussian
private static final long
private static final int
private static final long
private static final long
private long
Fields inherited from interface net.minecraft.world.level.levelgen.BitRandomSource
DOUBLE_MULTIPLIER, FLOAT_MULTIPLIER
Fields inherited from interface net.minecraft.util.RandomSource
GAUSSIAN_SPREAD_FACTOR
-
Constructor Summary
-
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.world.level.levelgen.BitRandomSource
nextBoolean, nextDouble, nextFloat, nextInt, nextInt, nextLong
Methods inherited from interface net.minecraft.util.RandomSource
consumeCount, nextInt, nextIntBetweenInclusive, triangle
-
Field Details
-
MODULUS_BITS
private static final int MODULUS_BITS- See Also:
-
MODULUS_MASK
private static final long MODULUS_MASK- See Also:
-
MULTIPLIER
private static final long MULTIPLIER- See Also:
-
INCREMENT
private static final long INCREMENT- See Also:
-
seed
private long seed -
gaussianSource
-
-
Constructor Details
-
SingleThreadedRandomSource
public SingleThreadedRandomSource(long p_189353_)
-
-
Method Details
-
fork
- Specified by:
fork
in interfaceRandomSource
-
forkPositional
- Specified by:
forkPositional
in interfaceRandomSource
-
setSeed
public void setSeed(long p_189360_) - Specified by:
setSeed
in interfaceRandomSource
-
next
public int next(int p_189356_) - Specified by:
next
in interfaceBitRandomSource
-
nextGaussian
public double nextGaussian()- Specified by:
nextGaussian
in interfaceRandomSource
-