2022-04-07 10:14:42 -04:00
|
|
|
CLASS net/minecraft/class_2919 net/minecraft/util/math/random/ChunkRandom
|
2021-02-04 13:34:17 -05:00
|
|
|
FIELD field_28768 sampleCount I
|
2021-10-10 17:13:17 -04:00
|
|
|
FIELD field_35141 baseRandom Lnet/minecraft/class_5819;
|
|
|
|
METHOD <init> (Lnet/minecraft/class_5819;)V
|
|
|
|
ARG 1 baseRandom
|
2020-03-05 18:59:17 -05:00
|
|
|
METHOD method_12661 setPopulationSeed (JII)J
|
|
|
|
COMMENT Seeds the randomizer to create population features such as decorators and animals.
|
|
|
|
COMMENT
|
|
|
|
COMMENT <p>This method takes in the world seed and the negative-most block coordinates of the
|
|
|
|
COMMENT chunk. The coordinate pair provided is equivalent to (chunkX * 16, chunkZ * 16). The
|
|
|
|
COMMENT three values are mixed together through some layers of hashing to produce the
|
2021-04-11 08:08:07 -04:00
|
|
|
COMMENT population seed.
|
2020-03-05 18:59:17 -05:00
|
|
|
COMMENT
|
|
|
|
COMMENT <p>This function has been proved to be reversible through some exploitation of the underlying
|
|
|
|
COMMENT nextLong() weaknesses. It is also important to remember that since setSeed()
|
|
|
|
COMMENT truncates the 16 upper bits of world seed, only the 48 lowest bits affect the population
|
2021-04-11 08:08:07 -04:00
|
|
|
COMMENT seed output.
|
2019-06-28 17:55:20 -04:00
|
|
|
ARG 1 worldSeed
|
2020-03-05 18:59:17 -05:00
|
|
|
ARG 3 blockX
|
|
|
|
ARG 4 blockZ
|
2022-04-06 15:01:01 -04:00
|
|
|
METHOD method_12662 getSlimeRandom (IIJJ)Lnet/minecraft/class_5819;
|
2020-03-05 18:59:17 -05:00
|
|
|
ARG 0 chunkX
|
|
|
|
ARG 1 chunkZ
|
2019-01-09 03:51:49 -05:00
|
|
|
ARG 2 worldSeed
|
2020-03-05 18:59:17 -05:00
|
|
|
ARG 4 scrambler
|
2021-09-16 15:04:31 -04:00
|
|
|
METHOD method_12663 setCarverSeed (JII)V
|
2020-03-05 18:59:17 -05:00
|
|
|
COMMENT Seeds the randomizer to generate larger features such as caves, ravines, mineshafts
|
2020-06-24 12:34:48 -04:00
|
|
|
COMMENT and strongholds. It is also used to initiate structure start behavior such as rotation.
|
2020-03-05 18:59:17 -05:00
|
|
|
COMMENT
|
|
|
|
COMMENT <p>Similar to the population seed, only the 48 lowest bits of the world seed affect the
|
2021-04-11 08:08:07 -04:00
|
|
|
COMMENT output since it the upper 16 bits are truncated in the setSeed() call.
|
2019-01-09 03:51:49 -05:00
|
|
|
ARG 1 worldSeed
|
2020-03-05 18:59:17 -05:00
|
|
|
ARG 3 chunkX
|
|
|
|
ARG 4 chunkZ
|
2021-09-16 15:04:31 -04:00
|
|
|
METHOD method_12664 setDecoratorSeed (JII)V
|
2020-03-05 18:59:17 -05:00
|
|
|
COMMENT Seeds the randomizer to generate a given feature.
|
|
|
|
COMMENT
|
|
|
|
COMMENT The salt, in the form of {@code index + 10000 * step} assures that each feature is seeded
|
|
|
|
COMMENT differently, making the decoration feel more random. Even though it does a good job
|
|
|
|
COMMENT at doing so, many entropy issues arise from the salt being so small and result in
|
|
|
|
COMMENT weird alignments between features that have an index close apart.
|
|
|
|
ARG 1 populationSeed
|
2021-04-13 07:59:43 -04:00
|
|
|
COMMENT the population seed computed in {@link #setPopulationSeed(long, int, int)}
|
2019-01-09 03:51:49 -05:00
|
|
|
ARG 3 index
|
2021-04-13 07:59:43 -04:00
|
|
|
COMMENT the index of the feature in the feature list
|
2019-01-09 03:51:49 -05:00
|
|
|
ARG 4 step
|
2021-04-13 07:59:43 -04:00
|
|
|
COMMENT the generation step's ordinal for this feature
|
2021-09-16 15:04:31 -04:00
|
|
|
METHOD method_12665 setRegionSeed (JIII)V
|
2020-03-05 18:59:17 -05:00
|
|
|
COMMENT Seeds the randomizer to determine the start position of structure features such as
|
|
|
|
COMMENT temples, monuments and buried treasures within a region.
|
|
|
|
COMMENT
|
|
|
|
COMMENT <p>The region coordinates pair corresponds to the coordinates of the region the seeded
|
|
|
|
COMMENT chunk lies in. For example, a swamp hut region is 32 by 32 chunks meaning that all
|
2021-04-11 08:08:07 -04:00
|
|
|
COMMENT chunks that lie within that region get seeded the same way.
|
2020-03-05 18:59:17 -05:00
|
|
|
COMMENT
|
|
|
|
COMMENT <p>Similarly, the upper 16 bits of world seed also do not affect the region seed because
|
2021-04-11 08:08:07 -04:00
|
|
|
COMMENT they get truncated in the setSeed() call.
|
2019-01-09 03:51:49 -05:00
|
|
|
ARG 1 worldSeed
|
2020-03-05 18:59:17 -05:00
|
|
|
ARG 3 regionX
|
|
|
|
ARG 4 regionZ
|
|
|
|
ARG 5 salt
|
2021-05-12 09:01:09 -04:00
|
|
|
METHOD method_35335 getSampleCount ()I
|
2022-04-06 15:01:01 -04:00
|
|
|
METHOD method_43156 (I)I
|
2021-02-04 13:34:17 -05:00
|
|
|
ARG 1 count
|
2021-10-10 17:13:17 -04:00
|
|
|
CLASS class_6675 RandomProvider
|
|
|
|
FIELD field_35144 provider Ljava/util/function/LongFunction;
|
|
|
|
METHOD <init> (Ljava/lang/String;ILjava/util/function/LongFunction;)V
|
|
|
|
ARG 3 provider
|
|
|
|
METHOD method_39006 create (J)Lnet/minecraft/class_5819;
|
|
|
|
ARG 1 seed
|