Class ThreadSafeLegacyRandomSource
java.lang.Object
net.minecraft.world.level.levelgen.ThreadSafeLegacyRandomSource
- All Implemented Interfaces:
RandomSource, BitRandomSource
Deprecated.
-
Field Summary
FieldsModifier 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 BitRandomSource
DOUBLE_MULTIPLIER, FLOAT_MULTIPLIERFields inherited from interface RandomSource
GAUSSIAN_SPREAD_FACTOR -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BitRandomSource
nextBoolean, nextDouble, nextFloat, nextInt, nextInt, nextLongMethods inherited from interface RandomSource
consumeCount, nextInt, nextIntBetweenInclusive, triangle, triangle
-
Field Details
-
MODULUS_BITS
private static final int MODULUS_BITSDeprecated.- See Also:
-
MODULUS_MASK
private static final long MODULUS_MASKDeprecated.- See Also:
-
MULTIPLIER
private static final long MULTIPLIERDeprecated.- See Also:
-
INCREMENT
private static final long INCREMENTDeprecated.- See Also:
-
seed
Deprecated. -
gaussianSource
Deprecated.
-
-
Constructor Details
-
ThreadSafeLegacyRandomSource
public ThreadSafeLegacyRandomSource(long seed) Deprecated.
-
-
Method Details
-
fork
-
forkPositional
Deprecated.- Specified by:
forkPositionalin interfaceRandomSource
-
setSeed
-
next
-
nextGaussian
-