Class WorldgenRandom
java.lang.Object
java.util.Random
net.minecraft.world.level.levelgen.WorldgenRandom
- All Implemented Interfaces:
Serializable
,RandomGenerator
,RandomSource
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.random.RandomGenerator
RandomGenerator.ArbitrarilyJumpableGenerator, RandomGenerator.JumpableGenerator, RandomGenerator.LeapableGenerator, RandomGenerator.SplittableGenerator, RandomGenerator.StreamableGenerator
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfork()
int
getCount()
int
next
(int p_64708_) static Random
seedSlimeChunk
(int p_64686_, int p_64687_, long p_64688_, long p_64689_) long
setDecorationSeed
(long p_64691_, int p_64692_, int p_64693_) void
setFeatureSeed
(long p_190065_, int p_190066_, int p_190067_) void
setLargeFeatureSeed
(long p_190069_, int p_190070_, int p_190071_) void
setLargeFeatureWithSalt
(long p_190059_, int p_190060_, int p_190061_, int p_190062_) void
setSeed
(long p_190073_) Methods inherited from class java.util.Random
doubles, doubles, doubles, doubles, ints, ints, ints, ints, longs, longs, longs, longs, nextBoolean, nextBytes, nextDouble, nextFloat, nextGaussian, nextInt, nextInt, nextLong
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.random.RandomGenerator
isDeprecated, nextDouble, nextDouble, nextExponential, nextFloat, nextFloat, nextGaussian, nextInt, nextLong, nextLong
Methods inherited from interface net.minecraft.world.level.levelgen.RandomSource
consumeCount, nextBoolean, nextDouble, nextFloat, nextGaussian, nextInt, nextInt, nextIntBetweenInclusive, nextLong
-
Field Details
-
randomSource
-
count
private int count
-
-
Constructor Details
-
WorldgenRandom
-
-
Method Details
-
getCount
public int getCount() -
fork
- Specified by:
fork
in interfaceRandomSource
-
forkPositional
- Specified by:
forkPositional
in interfaceRandomSource
-
next
public int next(int p_64708_) -
setSeed
public void setSeed(long p_190073_) - Specified by:
setSeed
in interfaceRandomSource
- Overrides:
setSeed
in classRandom
-
setDecorationSeed
public long setDecorationSeed(long p_64691_, int p_64692_, int p_64693_) -
setFeatureSeed
public void setFeatureSeed(long p_190065_, int p_190066_, int p_190067_) -
setLargeFeatureSeed
public void setLargeFeatureSeed(long p_190069_, int p_190070_, int p_190071_) -
setLargeFeatureWithSalt
public void setLargeFeatureWithSalt(long p_190059_, int p_190060_, int p_190061_, int p_190062_) -
seedSlimeChunk
-