Class LegacyRandomSource
java.lang.Object
net.minecraft.world.level.levelgen.LegacyRandomSource
- All Implemented Interfaces:
RandomSource
,BitRandomSource
- Direct Known Subclasses:
WorldgenRandom
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final MarsagliaPolarGaussian
private static final long
private static final int
private static final long
private static final long
private final AtomicLong
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
-
gaussianSource
-
-
Constructor Details
-
LegacyRandomSource
public LegacyRandomSource(long p_188578_)
-
-
Method Details
-
fork
- Specified by:
fork
in interfaceRandomSource
-
forkPositional
- Specified by:
forkPositional
in interfaceRandomSource
-
setSeed
public void setSeed(long p_188585_) - Specified by:
setSeed
in interfaceRandomSource
-
next
public int next(int p_188581_) - Specified by:
next
in interfaceBitRandomSource
-
nextGaussian
public double nextGaussian()- Specified by:
nextGaussian
in interfaceRandomSource
-