private void fightEerie(World world, int x, int y, int z) { int rx = ReikaRandomHelper.getRandomPlusMinus(x, 32); int rz = ReikaRandomHelper.getRandomPlusMinus(z, 32); if (world.checkChunksExist(rx, 0, rz, rx, 255, rz)) { int r = 3; for (int i = -r; i <= r; i++) { for (int k = -r; k <= r; k++) { int dx = rx + i; int dz = rz + k; BiomeGenBase biome = world.getBiomeGenForCoords(dx, dz); int id = biome.biomeID; if (id == ThaumBlockHandler.getInstance().eerieBiomeID) { BiomeGenBase natural = ReikaWorldHelper.getNaturalGennedBiomeAt(world, dx, dz); if (natural != null) { ReikaWorldHelper.setBiomeForXZ(world, dx, dz, natural); } } } } } }
private void convertPureNodeMagic(World world, int x, int y, int z) { int rx = ReikaRandomHelper.getRandomPlusMinus(x, 64); int rz = ReikaRandomHelper.getRandomPlusMinus(z, 64); if (world.checkChunksExist(rx, 0, rz, rx, 255, rz)) { int r = 3; for (int i = -r; i <= r; i++) { for (int k = -r; k <= r; k++) { int dx = rx + i; int dz = rz + k; BiomeGenBase biome = world.getBiomeGenForCoords(dx, dz); int id = biome.biomeID; if (id == ThaumBlockHandler.getInstance().magicBiomeID) { BiomeGenBase natural = ReikaWorldHelper.getNaturalGennedBiomeAt(world, dx, dz); if (natural != null && DyeTrees.isRainbowForest(natural)) { ReikaWorldHelper.setBiomeForXZ(world, dx, dz, natural); } } } } } }