Class SimpleRandomSource
java.lang.Object
net.minecraft.world.level.levelgen.SimpleRandomSource
- All Implemented Interfaces:
RandomSource
-
Field Summary
Modifier and TypeFieldDescriptionprivate static double
private static float
private boolean
private static long
private static int
private static long
private static long
private double
private AtomicLong
-
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.world.level.levelgen.RandomSource
consumeCount
-
Field Details
-
MODULUS_BITS
private static final int MODULUS_BITS- See Also:
- Constant Field Values
-
MODULUS_MASK
private static final long MODULUS_MASK- See Also:
- Constant Field Values
-
MULTIPLIER
private static final long MULTIPLIER- See Also:
- Constant Field Values
-
INCREMENT
private static final long INCREMENT- See Also:
- Constant Field Values
-
FLOAT_MULTIPLIER
private static final float FLOAT_MULTIPLIER- See Also:
- Constant Field Values
-
DOUBLE_MULTIPLIER
private static final double DOUBLE_MULTIPLIER- See Also:
- Constant Field Values
-
seed
-
nextNextGaussian
private double nextNextGaussian -
haveNextNextGaussian
private boolean haveNextNextGaussian
-
-
Constructor Details
-
SimpleRandomSource
public SimpleRandomSource(long p_158890_)
-
-
Method Details
-
setSeed
public void setSeed(long p_158902_)- Specified by:
setSeed
in interfaceRandomSource
-
next
private int next(int p_158892_) -
nextInt
public int nextInt()- Specified by:
nextInt
in interfaceRandomSource
-
nextInt
public int nextInt(int p_158899_)- Specified by:
nextInt
in interfaceRandomSource
-
nextLong
public long nextLong()- Specified by:
nextLong
in interfaceRandomSource
-
nextBoolean
public boolean nextBoolean()- Specified by:
nextBoolean
in interfaceRandomSource
-
nextFloat
public float nextFloat()- Specified by:
nextFloat
in interfaceRandomSource
-
nextDouble
public double nextDouble()- Specified by:
nextDouble
in interfaceRandomSource
-
nextGaussian
public double nextGaussian()- Specified by:
nextGaussian
in interfaceRandomSource
-