Class XoroshiroRandomSource
java.lang.Object
net.minecraft.world.level.levelgen.XoroshiroRandomSource
- All Implemented Interfaces:
RandomSource
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<XoroshiroRandomSource> private static final doubleprivate static final floatprivate final MarsagliaPolarGaussianprivate Xoroshiro128PlusPlusFields inherited from interface net.minecraft.util.RandomSource
GAUSSIAN_SPREAD_FACTOR -
Constructor Summary
ConstructorsModifierConstructorDescriptionXoroshiroRandomSource(long p_190102_) XoroshiroRandomSource(long p_190104_, long p_190105_) XoroshiroRandomSource(RandomSupport.Seed128bit p_289014_) privateXoroshiroRandomSource(Xoroshiro128PlusPlus p_287656_) -
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.RandomSource
nextInt, nextIntBetweenInclusive, triangle
-
Field Details
-
FLOAT_UNIT
private static final float FLOAT_UNIT- See Also:
-
DOUBLE_UNIT
private static final double DOUBLE_UNIT- See Also:
-
CODEC
-
randomNumberGenerator
-
gaussianSource
-
-
Constructor Details
-
XoroshiroRandomSource
public XoroshiroRandomSource(long p_190102_) -
XoroshiroRandomSource
-
XoroshiroRandomSource
public XoroshiroRandomSource(long p_190104_, long p_190105_) -
XoroshiroRandomSource
-
-
Method Details
-
fork
- Specified by:
forkin interfaceRandomSource
-
forkPositional
- Specified by:
forkPositionalin interfaceRandomSource
-
setSeed
public void setSeed(long p_190121_) - Specified by:
setSeedin interfaceRandomSource
-
nextInt
public int nextInt()- Specified by:
nextIntin interfaceRandomSource
-
nextInt
public int nextInt(int p_190118_) - Specified by:
nextIntin interfaceRandomSource
-
nextLong
public long nextLong()- Specified by:
nextLongin interfaceRandomSource
-
nextBoolean
public boolean nextBoolean()- Specified by:
nextBooleanin interfaceRandomSource
-
nextFloat
public float nextFloat()- Specified by:
nextFloatin interfaceRandomSource
-
nextDouble
public double nextDouble()- Specified by:
nextDoublein interfaceRandomSource
-
nextGaussian
public double nextGaussian()- Specified by:
nextGaussianin interfaceRandomSource
-
consumeCount
public void consumeCount(int p_190111_) - Specified by:
consumeCountin interfaceRandomSource
-
nextBits
private long nextBits(int p_190108_)
-