use of cn.nukkit.level.format.FullChunk in project Nukkit by Nukkit.
the class Normal method populateChunk.
@Override
public void populateChunk(int chunkX, int chunkZ) {
this.nukkitRandom.setSeed(0xdeadbeef ^ (chunkX << 8) ^ chunkZ ^ this.level.getSeed());
for (Populator populator : this.populators) {
populator.populate(this.level, chunkX, chunkZ, this.nukkitRandom);
}
FullChunk chunk = this.level.getChunk(chunkX, chunkZ);
Biome biome = Biome.getBiome(chunk.getBiomeId(7, 7));
biome.populateChunk(this.level, chunkX, chunkZ, this.nukkitRandom);
}
Aggregations