- private void findBoxesFromRNG(int chunkX, int chunkZ, int chunkStartX, int chunkStartZ) {
- Random random = BedrockCeilingHelper.getRandomForChunk(chunkX, chunkZ);
-
- // preseed 16x16x3 calls to nextDouble
- for (int dummy = 0; dummy < 768; dummy++) {
- random.nextDouble();
- }
- for (int z = 0; z < 16; z++) {
- for (int x = 0; x < 16; x++) {
- Coords coords = getBlocksFromRNG(random, chunkStartX + x, chunkStartZ + z);
-
- if (coords != null) {
- boxes.add(new BoundingBoxBedrockCeiling(coords));
- }
- }
- }
- }
-
- private Coords getBlocksFromRNG(Random random, int x, int z) {
- int count = 0;
- for (int y = 127; y >= 123; y--) {
- if (y >= 127 - random.nextInt(5)) {
- count++;
- }
- }
- for (int y = 4; y >= 0; y--) {
- random.nextInt(5);
- }
- return count == 1 ? new Coords(x, 127, z) : null;
- }
+// private void findBoxesFromRNG(int chunkX, int chunkZ, int chunkStartX, int chunkStartZ) {
+// Random random = BedrockCeilingHelper.getRandomForChunk(chunkX, chunkZ);
+//
+// // preseed 16x16x3 calls to nextDouble
+// for (int dummy = 0; dummy < 768; dummy++) {
+// random.nextDouble();
+// }
+// for (int z = 0; z < 16; z++) {
+// for (int x = 0; x < 16; x++) {
+// Coords coords = getBlocksFromRNG(random, chunkStartX + x, chunkStartZ + z);
+//
+// if (coords != null) {
+// boxes.add(new BoundingBoxBedrockCeiling(coords));
+// }
+// }
+// }
+// }
+//
+// private Coords getBlocksFromRNG(Random random, int x, int z) {
+// int count = 0;
+// for (int y = 127; y >= 123; y--) {
+// if (y >= 127 - random.nextInt(5)) {
+// count++;
+// }
+// }
+// for (int y = 4; y >= 0; y--) {
+// random.nextInt(5);
+// }
+// return count == 1 ? new Coords(x, 127, z) : null;
+// }