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 classes/interfaces inherited from class net.minecraft.world.level.levelgen.LegacyRandomSource
LegacyRandomSource.LegacyPositionalRandomFactory
-
Field Summary
Fields inherited from interface net.minecraft.world.level.levelgen.BitRandomSource
DOUBLE_MULTIPLIER, FLOAT_MULTIPLIER
Fields inherited from interface net.minecraft.util.RandomSource
GAUSSIAN_SPREAD_FACTOR
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfork()
int
getCount()
int
next
(int p_64708_) static RandomSource
seedSlimeChunk
(int p_224682_, int p_224683_, long p_224684_, long p_224685_) 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 net.minecraft.world.level.levelgen.LegacyRandomSource
nextGaussian
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.BitRandomSource
nextBoolean, nextDouble, nextFloat, nextInt, nextInt, nextLong
Methods 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:
fork
in interfaceRandomSource
- Overrides:
fork
in classLegacyRandomSource
-
forkPositional
- Specified by:
forkPositional
in interfaceRandomSource
- Overrides:
forkPositional
in classLegacyRandomSource
-
next
public int next(int p_64708_) - Specified by:
next
in interfaceBitRandomSource
- Overrides:
next
in classLegacyRandomSource
-
setSeed
public void setSeed(long p_190073_) - Specified by:
setSeed
in interfaceRandomSource
- Overrides:
setSeed
in 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_)
-