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 - named - net/minecraft/util/math/random/CheckedRandom- intermediary - net/minecraft/class_5820- official - ecu
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final GaussianGeneratorprivate static final longprivate static final intprivate static final longprivate final AtomicLongprivate static final longFields inherited from interface net.minecraft.util.math.random.BaseRandomDOUBLE_MULTIPLIER, FLOAT_MULTIPLIERFields inherited from interface net.minecraft.util.math.random.Randomfield_38930
- 
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.util.math.random.BaseRandomnextBoolean, nextDouble, nextFloat, nextInt, nextInt, nextLongMethods inherited from interface net.minecraft.util.math.random.RandomnextBetween, nextBetweenExclusive, nextTriangular, nextTriangular, skip
- 
Field Details- 
INT_BITSprivate static final int INT_BITS- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - INT_BITS- Lnet/minecraft/util/math/random/CheckedRandom;INT_BITS:I- intermediary - field_31471- Lnet/minecraft/class_5820;field_31471:I- official - d- Lecu;d:I
 
- 
SEED_MASKprivate static final long SEED_MASK- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - SEED_MASK- Lnet/minecraft/util/math/random/CheckedRandom;SEED_MASK:J- intermediary - field_31472- Lnet/minecraft/class_5820;field_31472:J- official - e- Lecu;e:J
 
- 
MULTIPLIERprivate static final long MULTIPLIER- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - MULTIPLIER- Lnet/minecraft/util/math/random/CheckedRandom;MULTIPLIER:J- intermediary - field_31473- Lnet/minecraft/class_5820;field_31473:J- official - f- Lecu;f:J
 
- 
INCREMENTprivate static final long INCREMENT- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - INCREMENT- Lnet/minecraft/util/math/random/CheckedRandom;INCREMENT:J- intermediary - field_31474- Lnet/minecraft/class_5820;field_31474:J- official - g- Lecu;g:J
 
- 
seed- Mappings:
- Namespace - Name - Mixin selector - named - seed- Lnet/minecraft/util/math/random/CheckedRandom;seed:Ljava/util/concurrent/atomic/AtomicLong;- intermediary - field_28766- Lnet/minecraft/class_5820;field_28766:Ljava/util/concurrent/atomic/AtomicLong;- official - h- Lecu;h:Ljava/util/concurrent/atomic/AtomicLong;
 
- 
gaussianGenerator- Mappings:
- Namespace - Name - Mixin selector - named - gaussianGenerator- Lnet/minecraft/util/math/random/CheckedRandom;gaussianGenerator:Lnet/minecraft/util/math/random/GaussianGenerator;- intermediary - field_35124- Lnet/minecraft/class_5820;field_35124:Lnet/minecraft/class_6672;- official - i- Lecu;i:Lecv;
 
 
- 
- 
Constructor Details- 
CheckedRandompublic CheckedRandom(long seed) - Mappings:
- Namespace - Name - Mixin selector - named - <init>- Lnet/minecraft/util/math/random/CheckedRandom;<init>(J)V- intermediary - <init>- Lnet/minecraft/class_5820;<init>(J)V- official - <init>- Lecu;<init>(J)V
 
 
- 
- 
Method Details- 
split
- 
nextSplitter- Specified by:
- nextSplitterin interface- Random
- Mappings:
- Namespace - Name - Mixin selector - named - nextSplitter- Lnet/minecraft/util/math/random/Random;nextSplitter()Lnet/minecraft/util/math/random/RandomSplitter;- intermediary - method_38421- Lnet/minecraft/class_5819;method_38421()Lnet/minecraft/class_6574;- official - e- Lazh;e()Ledg;
 
- 
setSeedpublic void setSeed(long seed) 
- 
nextpublic int next(int bits) - Specified by:
- nextin interface- BaseRandom
- Mappings:
- Namespace - Name - Mixin selector - named - next- Lnet/minecraft/util/math/random/BaseRandom;next(I)I- intermediary - method_43156- Lnet/minecraft/class_6566;method_43156(I)I- official - c- Leci;c(I)I
 
- 
nextGaussianpublic double nextGaussian()- Specified by:
- nextGaussianin interface- Random
- Mappings:
- Namespace - Name - Mixin selector - named - nextGaussian- Lnet/minecraft/util/math/random/Random;nextGaussian()D- intermediary - method_43059- Lnet/minecraft/class_5819;method_43059()D- official - k- Lazh;k()D
 
 
-