Class XoroshiroRandomSource
java.lang.Object
net.minecraft.world.level.levelgen.XoroshiroRandomSource
- All Implemented Interfaces:
- RandomSource
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic class
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<XoroshiroRandomSource>private static final doubleprivate static final floatprivate final MarsagliaPolarGaussianprivate Xoroshiro128PlusPlusFields inherited from interface net.minecraft.util.RandomSourceGAUSSIAN_SPREAD_FACTOR
- 
Constructor SummaryConstructorsModifierConstructorDescriptionXoroshiroRandomSource(long p_190102_) XoroshiroRandomSource(long p_190104_, long p_190105_) XoroshiroRandomSource(RandomSupport.Seed128bit p_289014_) privateXoroshiroRandomSource(Xoroshiro128PlusPlus p_287656_) 
- 
Method SummaryMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.util.RandomSourcenextInt, nextIntBetweenInclusive, triangle
- 
Field Details- 
FLOAT_UNITprivate static final float FLOAT_UNIT- See Also:
 
- 
DOUBLE_UNITprivate static final double DOUBLE_UNIT- See Also:
 
- 
CODEC
- 
randomNumberGenerator
- 
gaussianSource
 
- 
- 
Constructor Details- 
XoroshiroRandomSourcepublic XoroshiroRandomSource(long p_190102_) 
- 
XoroshiroRandomSource
- 
XoroshiroRandomSourcepublic XoroshiroRandomSource(long p_190104_, long p_190105_) 
- 
XoroshiroRandomSource
 
- 
- 
Method Details- 
fork- Specified by:
- forkin interface- RandomSource
 
- 
forkPositional- Specified by:
- forkPositionalin interface- RandomSource
 
- 
setSeedpublic void setSeed(long p_190121_) - Specified by:
- setSeedin interface- RandomSource
 
- 
nextIntpublic int nextInt()- Specified by:
- nextIntin interface- RandomSource
 
- 
nextIntpublic int nextInt(int p_190118_) - Specified by:
- nextIntin interface- RandomSource
 
- 
nextLongpublic long nextLong()- Specified by:
- nextLongin interface- RandomSource
 
- 
nextBooleanpublic boolean nextBoolean()- Specified by:
- nextBooleanin interface- RandomSource
 
- 
nextFloatpublic float nextFloat()- Specified by:
- nextFloatin interface- RandomSource
 
- 
nextDoublepublic double nextDouble()- Specified by:
- nextDoublein interface- RandomSource
 
- 
nextGaussianpublic double nextGaussian()- Specified by:
- nextGaussianin interface- RandomSource
 
- 
consumeCountpublic void consumeCount(int p_190111_) - Specified by:
- consumeCountin interface- RandomSource
 
- 
nextBitsprivate long nextBits(int p_190108_) 
 
-