Package net.minecraft.util.math.random
Class ThreadSafeRandom
java.lang.Object
net.minecraft.util.math.random.ThreadSafeRandom
- All Implemented Interfaces:
BaseRandom,Random
Deprecated.
A random that can be shared by multiple threads safely.
- Mappings:
Namespace Name official danintermediary net/minecraft/class_7384named net/minecraft/util/math/random/ThreadSafeRandom
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final GaussianGeneratorDeprecated.private static final longDeprecated.private static final intDeprecated.private static final longDeprecated.private final AtomicLongDeprecated.private static final longDeprecated.Fields inherited from interface net.minecraft.util.math.random.BaseRandom
DOUBLE_MULTIPLIER, FLOAT_MULTIPLIERFields inherited from interface net.minecraft.util.math.random.Random
field_38930 -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.util.math.random.BaseRandom
nextBoolean, nextDouble, nextFloat, nextInt, nextInt, nextLongMethods inherited from interface net.minecraft.util.math.random.Random
nextBetween, nextBetweenExclusive, nextTriangular, skip
-
Field Details
-
INT_BITS
private static final int INT_BITSDeprecated.- See Also:
- Mappings:
Namespace Name Mixin selector official dLdan;d:Iintermediary field_38760Lnet/minecraft/class_7384;field_38760:Inamed INT_BITSLnet/minecraft/util/math/random/ThreadSafeRandom;INT_BITS:I
-
SEED_MASK
private static final long SEED_MASKDeprecated.- See Also:
- Mappings:
Namespace Name Mixin selector official eLdan;e:Jintermediary field_38761Lnet/minecraft/class_7384;field_38761:Jnamed SEED_MASKLnet/minecraft/util/math/random/ThreadSafeRandom;SEED_MASK:J
-
MULTIPLIER
private static final long MULTIPLIERDeprecated.- See Also:
- Mappings:
Namespace Name Mixin selector official fLdan;f:Jintermediary field_38762Lnet/minecraft/class_7384;field_38762:Jnamed MULTIPLIERLnet/minecraft/util/math/random/ThreadSafeRandom;MULTIPLIER:J
-
INCREMENT
private static final long INCREMENTDeprecated.- See Also:
- Mappings:
Namespace Name Mixin selector official gLdan;g:Jintermediary field_38763Lnet/minecraft/class_7384;field_38763:Jnamed INCREMENTLnet/minecraft/util/math/random/ThreadSafeRandom;INCREMENT:J
-
seed
Deprecated.- Mappings:
Namespace Name Mixin selector official hLdan;h:Ljava/util/concurrent/atomic/AtomicLong;intermediary field_38764Lnet/minecraft/class_7384;field_38764:Ljava/util/concurrent/atomic/AtomicLong;named seedLnet/minecraft/util/math/random/ThreadSafeRandom;seed:Ljava/util/concurrent/atomic/AtomicLong;
-
gaussianGenerator
Deprecated.- Mappings:
Namespace Name Mixin selector official iLdan;i:Lczw;intermediary field_38765Lnet/minecraft/class_7384;field_38765:Lnet/minecraft/class_6672;named gaussianGeneratorLnet/minecraft/util/math/random/ThreadSafeRandom;gaussianGenerator:Lnet/minecraft/util/math/random/GaussianGenerator;
-
-
Constructor Details
-
ThreadSafeRandom
public ThreadSafeRandom(long seed) Deprecated.- Mappings:
Namespace Name Mixin selector official <init>Ldan;<init>(J)Vintermediary <init>Lnet/minecraft/class_7384;<init>(J)Vnamed <init>Lnet/minecraft/util/math/random/ThreadSafeRandom;<init>(J)V
-
-
Method Details
-
split
Deprecated. -
nextSplitter
Deprecated.- Specified by:
nextSplitterin interfaceRandom- Mappings:
Namespace Name Mixin selector official eLalu;e()Ldah;intermediary method_38421Lnet/minecraft/class_5819;method_38421()Lnet/minecraft/class_6574;named nextSplitterLnet/minecraft/util/math/random/Random;nextSplitter()Lnet/minecraft/util/math/random/RandomSplitter;
-
setSeed
public void setSeed(long seed) Deprecated. -
next
public int next(int bits) Deprecated.- Specified by:
nextin interfaceBaseRandom- Mappings:
Namespace Name Mixin selector official cLczj;c(I)Iintermediary method_43156Lnet/minecraft/class_6566;method_43156(I)Inamed nextLnet/minecraft/util/math/random/BaseRandom;next(I)I
-
nextGaussian
public double nextGaussian()Deprecated.- Specified by:
nextGaussianin interfaceRandom- Mappings:
Namespace Name Mixin selector official kLalu;k()Dintermediary method_43059Lnet/minecraft/class_5819;method_43059()Dnamed nextGaussianLnet/minecraft/util/math/random/Random;nextGaussian()D
-