Package net.minecraft.util
Class SharedSeedRandom
java.lang.Object
java.util.Random
net.minecraft.util.SharedSeedRandom
- All Implemented Interfaces:
Serializable
,RandomGenerator
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.random.RandomGenerator
RandomGenerator.ArbitrarilyJumpableGenerator, RandomGenerator.JumpableGenerator, RandomGenerator.LeapableGenerator, RandomGenerator.SplittableGenerator, RandomGenerator.StreamableGenerator
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
consumeCount
(int p_202423_1_) protected int
next
(int p_next_1_) static Random
seedSlimeChunk
(int p_205190_0_, int p_205190_1_, long p_205190_2_, long p_205190_4_) long
setBaseChunkSeed
(int p_202422_1_, int p_202422_2_) long
setDecorationSeed
(long p_202424_1_, int p_202424_3_, int p_202424_4_) long
setFeatureSeed
(long p_202426_1_, int p_202426_3_, int p_202426_4_) long
setLargeFeatureSeed
(long p_202425_1_, int p_202425_3_, int p_202425_4_) long
setLargeFeatureWithSalt
(long p_202427_1_, int p_202427_3_, int p_202427_4_, int p_202427_5_) 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 java.util.random.RandomGenerator
isDeprecated, nextDouble, nextDouble, nextExponential, nextFloat, nextFloat, nextGaussian, nextInt, nextLong, nextLong
-
Field Details
-
count
private int count
-
-
Constructor Details
-
SharedSeedRandom
public SharedSeedRandom() -
SharedSeedRandom
public SharedSeedRandom(long p_i48691_1_)
-
-
Method Details
-
consumeCount
public void consumeCount(int p_202423_1_) -
next
protected int next(int p_next_1_) -
setBaseChunkSeed
public long setBaseChunkSeed(int p_202422_1_, int p_202422_2_) -
setDecorationSeed
public long setDecorationSeed(long p_202424_1_, int p_202424_3_, int p_202424_4_) -
setFeatureSeed
public long setFeatureSeed(long p_202426_1_, int p_202426_3_, int p_202426_4_) -
setLargeFeatureSeed
public long setLargeFeatureSeed(long p_202425_1_, int p_202425_3_, int p_202425_4_) -
setLargeFeatureWithSalt
public long setLargeFeatureWithSalt(long p_202427_1_, int p_202427_3_, int p_202427_4_, int p_202427_5_) -
seedSlimeChunk
public static Random seedSlimeChunk(int p_205190_0_, int p_205190_1_, long p_205190_2_, long p_205190_4_)
-