Search in sources :

Example 1 with PerlinSimplexNoise

use of net.minecraft.world.level.levelgen.synth.PerlinSimplexNoise in project Tropicraft by Tropicraft.

the class MangroveSurfaceBuilder method initNoise.

@Override
public void initNoise(long seed) {
    if (this.seed != seed || this.mudNoise == null) {
        WorldgenRandom random = new WorldgenRandom(seed);
        this.mudNoise = new PerlinSimplexNoise(random, IntStream.rangeClosed(0, 2));
        this.streamNoise = new PerlinSimplexNoise(random, IntStream.rangeClosed(0, 2));
    }
    this.seed = seed;
}
Also used : PerlinSimplexNoise(net.minecraft.world.level.levelgen.synth.PerlinSimplexNoise) WorldgenRandom(net.minecraft.world.level.levelgen.WorldgenRandom)

Aggregations

WorldgenRandom (net.minecraft.world.level.levelgen.WorldgenRandom)1 PerlinSimplexNoise (net.minecraft.world.level.levelgen.synth.PerlinSimplexNoise)1