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

Method getRandom

src/main/java/net/minecraft/src/Config.java:1401–1407  ·  view source on GitHub ↗
(BlockPos p_getRandom_0_, int p_getRandom_1_)

Source from the content-addressed store, hash-verified

1399 }
1400
1401 public static int getRandom(BlockPos p_getRandom_0_, int p_getRandom_1_) {
1402 int i = intHash(p_getRandom_1_ + 37);
1403 i = intHash(i + p_getRandom_0_.getX());
1404 i = intHash(i + p_getRandom_0_.getZ());
1405 i = intHash(i + p_getRandom_0_.getY());
1406 return i;
1407 }
1408
1409 public static int getAvailableProcessors() {
1410 return availableProcessors;

Callers 10

getNaturalTextureMethod · 0.95
getIdMethod · 0.95
addComponentPartsMethod · 0.45
addComponentPartsMethod · 0.45
addComponentPartsMethod · 0.45
addComponentPartsMethod · 0.45
addComponentPartsMethod · 0.45
addComponentPartsMethod · 0.45
generateMethod · 0.45

Calls 4

intHashMethod · 0.95
getXMethod · 0.65
getZMethod · 0.65
getYMethod · 0.65

Tested by

no test coverage detected