Question Why is noise still generated when `ChunkGenerator#shouldGenerateNoise` returns false?

Noy

New member
Jan 8, 2023
22
1
0
1
Hi! I'm using my own chunk generator to create my own minigame world, and I make shouldGenerateNoise returns false.

But the noise computation still appears and costs a lot of time. Why is that and how can I solve that?

(Version: 1.21.10, no other plugins or datapacks, only a player in my custom minigame world)
(Apologized for my broken English)

Java:
    public class RCChunkGenerator extends ChunkGenerator {
        @Override
        public void generateSurface(
                @NotNull WorldInfo worldInfo,
                @NotNull Random random,
                int chunkX,
                int chunkZ,
                @NotNull ChunkGenerator.ChunkData chunkData) {
            var themeId = chunkZ / 16;
            var theme = themes.inverse().get(themeId);
            if (theme == null) {
                return;
            }
            var origin = new Vector3i(
                    Math.floorMod(chunkX, 16) * 16, theme.getOffset().y() - 64, Math.floorMod(chunkZ, 16) * 16);

            theme.getStructure().place(chunkData, origin);
            theme.getStructure().placeFloor(chunkData, origin);
        }

        @Override
        public boolean shouldGenerateNoise() {
            return false;
        }
    }
1760423078194.png
 

electronicboy

Administrator
Staff member
Dec 11, 2021
320
18
67
28
That controls the delegation over to the vanilla noise generator for a specific phase of generation, it doesn't prevent the server from needing noise across the board, biome generation uses its own noise, for example
 
  • Like
Reactions: Noy