Class ThreadSafeLegacyRandomSource
java.lang.Object
net.minecraft.world.level.levelgen.ThreadSafeLegacyRandomSource
- All Implemented Interfaces:
- RandomSource,- BitRandomSource
Deprecated.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final MarsagliaPolarGaussianDeprecated.private static final longDeprecated.private static final intDeprecated.private static final longDeprecated.private static final longDeprecated.private final AtomicLongDeprecated.Fields 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_BITSDeprecated.- See Also:
 
- 
MODULUS_MASKprivate static final long MODULUS_MASKDeprecated.- See Also:
 
- 
MULTIPLIERprivate static final long MULTIPLIERDeprecated.- See Also:
 
- 
INCREMENTprivate static final long INCREMENTDeprecated.- See Also:
 
- 
seedDeprecated.
- 
gaussianSourceDeprecated.
 
- 
- 
Constructor Details- 
ThreadSafeLegacyRandomSourcepublic ThreadSafeLegacyRandomSource(long p_224664_) Deprecated.
 
- 
- 
Method Details- 
forkDeprecated.- Specified by:
- forkin interface- RandomSource
 
- 
forkPositionalDeprecated.- Specified by:
- forkPositionalin interface- RandomSource
 
- 
setSeedpublic void setSeed(long p_224666_) Deprecated.- Specified by:
- setSeedin interface- RandomSource
 
- 
nextpublic int next(int p_224668_) Deprecated.- Specified by:
- nextin interface- BitRandomSource
 
- 
nextGaussianpublic double nextGaussian()Deprecated.- Specified by:
- nextGaussianin interface- RandomSource
 
 
-