Class LegacyRandomSource
java.lang.Object
net.minecraft.world.level.levelgen.LegacyRandomSource
- All Implemented Interfaces:
- RandomSource,- BitRandomSource
- Direct Known Subclasses:
- WorldgenRandom
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final MarsagliaPolarGaussianprivate static final longprivate static final intprivate static final longprivate static final longprivate final AtomicLongFields inherited from interface net.minecraft.world.level.levelgen.BitRandomSourceDOUBLE_MULTIPLIER, FLOAT_MULTIPLIERFields inherited from interface net.minecraft.util.RandomSourceGAUSSIAN_SPREAD_FACTOR
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.level.levelgen.BitRandomSourcenextBoolean, nextDouble, nextFloat, nextInt, nextInt, nextLongMethods inherited from interface net.minecraft.util.RandomSourceconsumeCount, nextInt, nextIntBetweenInclusive, triangle
- 
Field Details- 
MODULUS_BITSprivate static final int MODULUS_BITS- See Also:
 
- 
MODULUS_MASKprivate static final long MODULUS_MASK- See Also:
 
- 
MULTIPLIERprivate static final long MULTIPLIER- See Also:
 
- 
INCREMENTprivate static final long INCREMENT- See Also:
 
- 
seed
- 
gaussianSource
 
- 
- 
Constructor Details- 
LegacyRandomSourcepublic LegacyRandomSource(long p_188578_) 
 
- 
- 
Method Details- 
fork- Specified by:
- forkin interface- RandomSource
 
- 
forkPositional- Specified by:
- forkPositionalin interface- RandomSource
 
- 
setSeedpublic void setSeed(long p_188585_) - Specified by:
- setSeedin interface- RandomSource
 
- 
nextpublic int next(int p_188581_) - Specified by:
- nextin interface- BitRandomSource
 
- 
nextGaussianpublic double nextGaussian()- Specified by:
- nextGaussianin interface- RandomSource
 
 
-