Package net.minecraft.util.math.random
Class CheckedRandom
java.lang.Object
net.minecraft.util.math.random.CheckedRandom
- All Implemented Interfaces:
BaseRandom
,Random
- Direct Known Subclasses:
ChunkRandom
A checked random that fails fast when it detects concurrent usage.
- Mappings:
Namespace Name official dhd
intermediary net/minecraft/class_5820
named net/minecraft/util/math/random/CheckedRandom
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final GaussianGenerator
private static final long
private static final int
private static final long
private final AtomicLong
private static final long
Fields inherited from interface net.minecraft.util.math.random.BaseRandom
DOUBLE_MULTIPLIER, FLOAT_MULTIPLIER
Fields inherited from interface net.minecraft.util.math.random.Random
field_38930
-
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.util.math.random.BaseRandom
nextBoolean, nextDouble, nextFloat, nextInt, nextInt, nextLong
Methods inherited from interface net.minecraft.util.math.random.Random
nextBetween, nextBetweenExclusive, nextTriangular, skip
-
Field Details
-
INT_BITS
private static final int INT_BITS- See Also:
- Mappings:
Namespace Name Mixin selector official d
Ldhd;d:I
intermediary field_31471
Lnet/minecraft/class_5820;field_31471:I
named INT_BITS
Lnet/minecraft/util/math/random/CheckedRandom;INT_BITS:I
-
SEED_MASK
private static final long SEED_MASK- See Also:
- Mappings:
Namespace Name Mixin selector official e
Ldhd;e:J
intermediary field_31472
Lnet/minecraft/class_5820;field_31472:J
named SEED_MASK
Lnet/minecraft/util/math/random/CheckedRandom;SEED_MASK:J
-
MULTIPLIER
private static final long MULTIPLIER- See Also:
- Mappings:
Namespace Name Mixin selector official f
Ldhd;f:J
intermediary field_31473
Lnet/minecraft/class_5820;field_31473:J
named MULTIPLIER
Lnet/minecraft/util/math/random/CheckedRandom;MULTIPLIER:J
-
INCREMENT
private static final long INCREMENT- See Also:
- Mappings:
Namespace Name Mixin selector official g
Ldhd;g:J
intermediary field_31474
Lnet/minecraft/class_5820;field_31474:J
named INCREMENT
Lnet/minecraft/util/math/random/CheckedRandom;INCREMENT:J
-
seed
- Mappings:
Namespace Name Mixin selector official h
Ldhd;h:Ljava/util/concurrent/atomic/AtomicLong;
intermediary field_28766
Lnet/minecraft/class_5820;field_28766:Ljava/util/concurrent/atomic/AtomicLong;
named seed
Lnet/minecraft/util/math/random/CheckedRandom;seed:Ljava/util/concurrent/atomic/AtomicLong;
-
gaussianGenerator
- Mappings:
Namespace Name Mixin selector official i
Ldhd;i:Ldhe;
intermediary field_35124
Lnet/minecraft/class_5820;field_35124:Lnet/minecraft/class_6672;
named gaussianGenerator
Lnet/minecraft/util/math/random/CheckedRandom;gaussianGenerator:Lnet/minecraft/util/math/random/GaussianGenerator;
-
-
Constructor Details
-
CheckedRandom
public CheckedRandom(long seed) - Mappings:
Namespace Name Mixin selector official <init>
Ldhd;<init>(J)V
intermediary <init>
Lnet/minecraft/class_5820;<init>(J)V
named <init>
Lnet/minecraft/util/math/random/CheckedRandom;<init>(J)V
-
-
Method Details
-
split
-
nextSplitter
- Specified by:
nextSplitter
in interfaceRandom
- Mappings:
Namespace Name Mixin selector official e
Lapd;e()Ldhp;
intermediary method_38421
Lnet/minecraft/class_5819;method_38421()Lnet/minecraft/class_6574;
named nextSplitter
Lnet/minecraft/util/math/random/Random;nextSplitter()Lnet/minecraft/util/math/random/RandomSplitter;
-
setSeed
public void setSeed(long seed) -
next
public int next(int bits) - Specified by:
next
in interfaceBaseRandom
- Mappings:
Namespace Name Mixin selector official c
Ldgr;c(I)I
intermediary method_43156
Lnet/minecraft/class_6566;method_43156(I)I
named next
Lnet/minecraft/util/math/random/BaseRandom;next(I)I
-
nextGaussian
public double nextGaussian()- Specified by:
nextGaussian
in interfaceRandom
- Mappings:
Namespace Name Mixin selector official k
Lapd;k()D
intermediary method_43059
Lnet/minecraft/class_5819;method_43059()D
named nextGaussian
Lnet/minecraft/util/math/random/Random;nextGaussian()D
-