Class WorldgenRandom
java.lang.Object
net.minecraft.world.level.levelgen.LegacyRandomSource
net.minecraft.world.level.levelgen.WorldgenRandom
- All Implemented Interfaces:
RandomSource,BitRandomSource
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.world.level.levelgen.LegacyRandomSource
LegacyRandomSource.LegacyPositionalRandomFactory -
Field Summary
FieldsFields inherited from interface net.minecraft.world.level.levelgen.BitRandomSource
DOUBLE_MULTIPLIER, FLOAT_MULTIPLIERFields inherited from interface net.minecraft.util.RandomSource
GAUSSIAN_SPREAD_FACTOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfork()intgetCount()intnext(int p_64708_) static RandomSourceseedSlimeChunk(int p_224682_, int p_224683_, long p_224684_, long p_224685_) 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 net.minecraft.world.level.levelgen.LegacyRandomSource
nextGaussianMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.level.levelgen.BitRandomSource
nextBoolean, nextDouble, nextFloat, nextInt, nextInt, nextLongMethods inherited from interface net.minecraft.util.RandomSource
consumeCount, nextInt, nextIntBetweenInclusive, triangle
-
Field Details
-
randomSource
-
count
private int count
-
-
Constructor Details
-
WorldgenRandom
-
-
Method Details
-
getCount
public int getCount() -
fork
- Specified by:
forkin interfaceRandomSource- Overrides:
forkin classLegacyRandomSource
-
forkPositional
- Specified by:
forkPositionalin interfaceRandomSource- Overrides:
forkPositionalin classLegacyRandomSource
-
next
public int next(int p_64708_) - Specified by:
nextin interfaceBitRandomSource- Overrides:
nextin classLegacyRandomSource
-
setSeed
public void setSeed(long p_190073_) - Specified by:
setSeedin interfaceRandomSource- Overrides:
setSeedin classLegacyRandomSource
-
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
public static RandomSource seedSlimeChunk(int p_224682_, int p_224683_, long p_224684_, long p_224685_)
-