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 ClassesNested classes/interfaces inherited from interface java.util.random.RandomGenerator
RandomGenerator.ArbitrarilyJumpableGenerator, RandomGenerator.JumpableGenerator, RandomGenerator.LeapableGenerator, RandomGenerator.SplittableGenerator, RandomGenerator.StreamableGenerator -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfork()intgetCount()intnext(int p_64708_) static RandomseedSlimeChunk(int p_64686_, int p_64687_, long p_64688_, long p_64689_) longsetDecorationSeed(long p_64691_, int p_64692_, int p_64693_) voidsetFeatureSeed(long p_190065_, int p_190066_, int p_190067_) voidsetLargeFeatureSeed(long p_190069_, int p_190070_, int p_190071_) voidsetLargeFeatureWithSalt(long p_190059_, int p_190060_, int p_190061_, int p_190062_) voidsetSeed(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, nextLongMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.random.RandomGenerator
isDeprecated, nextDouble, nextDouble, nextExponential, nextFloat, nextFloat, nextGaussian, nextInt, nextLong, nextLongMethods 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:
forkin interfaceRandomSource
-
forkPositional
- Specified by:
forkPositionalin interfaceRandomSource
-
next
public int next(int p_64708_) -
setSeed
public void setSeed(long p_190073_) - Specified by:
setSeedin interfaceRandomSource- Overrides:
setSeedin 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
-