Class SingleThreadedRandomSource
java.lang.Object
net.minecraft.world.level.levelgen.SingleThreadedRandomSource
- All Implemented Interfaces:
RandomSource,BitRandomSource
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final MarsagliaPolarGaussianprivate static final longprivate static final intprivate static final longprivate static final longprivate longFields inherited from interface net.minecraft.world.level.levelgen.BitRandomSource
DOUBLE_MULTIPLIER, FLOAT_MULTIPLIERFields inherited from interface net.minecraft.util.RandomSource
GAUSSIAN_SPREAD_FACTOR -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.level.levelgen.BitRandomSource
nextBoolean, nextDouble, nextFloat, nextInt, nextInt, nextLongMethods 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:
forkin interfaceRandomSource
-
forkPositional
- Specified by:
forkPositionalin interfaceRandomSource
-
setSeed
public void setSeed(long p_189360_) - Specified by:
setSeedin interfaceRandomSource
-
next
public int next(int p_189356_) - Specified by:
nextin interfaceBitRandomSource
-
nextGaussian
public double nextGaussian()- Specified by:
nextGaussianin interfaceRandomSource
-