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 LegacyRandomSource
LegacyRandomSource.LegacyPositionalRandomFactory -
Field Summary
FieldsFields inherited from interface BitRandomSource
DOUBLE_MULTIPLIER, FLOAT_MULTIPLIERFields inherited from interface RandomSource
GAUSSIAN_SPREAD_FACTOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfork()intgetCount()intnext(int bits) static RandomSourceseedSlimeChunk(int x, int z, long seed, long salt) longsetDecorationSeed(long seed, int chunkX, int chunkZ) voidsetFeatureSeed(long seed, int index, int step) voidsetLargeFeatureSeed(long seed, int chunkX, int chunkZ) voidsetLargeFeatureWithSalt(long seed, int x, int z, int blend) voidsetSeed(long seed) Methods inherited from class LegacyRandomSource
nextGaussianMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BitRandomSource
nextBoolean, nextDouble, nextFloat, nextInt, nextInt, nextLongMethods inherited from interface RandomSource
consumeCount, nextInt, nextIntBetweenInclusive, triangle, 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 bits) - Specified by:
nextin interfaceBitRandomSource- Overrides:
nextin classLegacyRandomSource
-
setSeed
public void setSeed(long seed) - Specified by:
setSeedin interfaceRandomSource- Overrides:
setSeedin classLegacyRandomSource
-
setDecorationSeed
public long setDecorationSeed(long seed, int chunkX, int chunkZ) -
setFeatureSeed
public void setFeatureSeed(long seed, int index, int step) -
setLargeFeatureSeed
public void setLargeFeatureSeed(long seed, int chunkX, int chunkZ) -
setLargeFeatureWithSalt
public void setLargeFeatureWithSalt(long seed, int x, int z, int blend) -
seedSlimeChunk
-