Class ThreadSafeLegacyRandomSource
java.lang.Object
net.minecraft.world.level.levelgen.ThreadSafeLegacyRandomSource
- All Implemented Interfaces:
RandomSource
,BitRandomSource
Deprecated.
-
Field Summary
Modifier and TypeFieldDescriptionprivate final MarsagliaPolarGaussian
Deprecated.private static final long
Deprecated.private static final int
Deprecated.private static final long
Deprecated.private static final long
Deprecated.private final AtomicLong
Deprecated.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_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 p_224664_) Deprecated.
-
-
Method Details
-
fork
Deprecated.- Specified by:
fork
in interfaceRandomSource
-
forkPositional
Deprecated.- Specified by:
forkPositional
in interfaceRandomSource
-
setSeed
public void setSeed(long p_224666_) Deprecated.- Specified by:
setSeed
in interfaceRandomSource
-
next
public int next(int p_224668_) Deprecated.- Specified by:
next
in interfaceBitRandomSource
-
nextGaussian
public double nextGaussian()Deprecated.- Specified by:
nextGaussian
in interfaceRandomSource
-