MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / setRandomSeed

Method setRandomSeed

src/main/java/net/minecraft/world/World.java:3680–3685  ·  view source on GitHub ↗

puts the World Random seed to a specific state dependant on the inputs

(int p_72843_1_, int p_72843_2_, int p_72843_3_)

Source from the content-addressed store, hash-verified

3678 * puts the World Random seed to a specific state dependant on the inputs
3679 */
3680 public Random setRandomSeed(int p_72843_1_, int p_72843_2_, int p_72843_3_)
3681 {
3682 long i = (long)p_72843_1_ * 341873128712L + (long)p_72843_2_ * 132897987541L + this.getWorldInfo().getSeed() + (long)p_72843_3_;
3683 this.rand.setSeed(i);
3684 return this.rand;
3685 }
3686
3687 public BlockPos getStrongholdPos(String name, BlockPos pos)
3688 {

Callers 3

Calls 2

getWorldInfoMethod · 0.95
getSeedMethod · 0.45

Tested by

no test coverage detected