mirror of
https://github.com/BentoBoxWorld/Boxed.git
synced 2025-01-20 20:51:27 +01:00
Work with 1.17 WorldGeneratorAPI
This commit is contained in:
parent
26cd1c9110
commit
8747e9a6db
@ -2,6 +2,7 @@ package world.bentobox.boxed.generators;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.block.Biome;
|
||||
import org.bukkit.configuration.file.YamlConfiguration;
|
||||
import org.bukkit.util.noise.SimplexNoiseGenerator;
|
||||
@ -33,6 +34,14 @@ public class OverWorldGenerator implements BaseNoiseGenerator {
|
||||
config = YamlConfiguration.loadConfiguration(biomeFile);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TerrainSettings getTerrainSettings() {
|
||||
TerrainSettings ts = new TerrainSettings();
|
||||
ts.stoneBlock = Material.STONE.createBlockData();
|
||||
ts.waterBlock = Material.WATER.createBlockData();
|
||||
return ts;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void getNoise(BiomeGenerator biomeGenerator, double[] buffer, int scaledX, int scaledZ) {
|
||||
|
Loading…
Reference in New Issue
Block a user