Class WorldgenRandom
java.lang.Object
java.util.Random
net.minecraft.world.level.levelgen.WorldgenRandom
- All Implemented Interfaces:
Serializable
,RandomSource
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getCount()
int
next(int p_64708_)
static Random
seedSlimeChunk(int p_64686_, int p_64687_, long p_64688_, long p_64689_)
long
setBaseChunkSeed(int p_64683_, int p_64684_)
long
setBaseStoneSeed(long p_158962_, int p_158963_, int p_158964_, int p_158965_)
long
setDecorationSeed(long p_64691_, int p_64692_, int p_64693_)
long
setFeatureSeed(long p_64700_, int p_64701_, int p_64702_)
long
setLargeFeatureSeed(long p_64704_, int p_64705_, int p_64706_)
long
setLargeFeatureWithSalt(long p_64695_, int p_64696_, int p_64697_, int p_64698_)
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, setSeed
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, nextBoolean, nextDouble, nextFloat, nextGaussian, nextInt, nextInt, nextLong, setSeed
-
Field Details
-
count
private int count
-
-
Constructor Details
-
WorldgenRandom
public WorldgenRandom() -
WorldgenRandom
public WorldgenRandom(long p_64679_)
-
-
Method Details
-
getCount
public int getCount() -
next
public int next(int p_64708_) -
setBaseChunkSeed
public long setBaseChunkSeed(int p_64683_, int p_64684_) -
setDecorationSeed
public long setDecorationSeed(long p_64691_, int p_64692_, int p_64693_) -
setFeatureSeed
public long setFeatureSeed(long p_64700_, int p_64701_, int p_64702_) -
setLargeFeatureSeed
public long setLargeFeatureSeed(long p_64704_, int p_64705_, int p_64706_) -
setBaseStoneSeed
public long setBaseStoneSeed(long p_158962_, int p_158963_, int p_158964_, int p_158965_) -
setLargeFeatureWithSalt
public long setLargeFeatureWithSalt(long p_64695_, int p_64696_, int p_64697_, int p_64698_) -
seedSlimeChunk
-