Fixes & improvements

This commit is contained in:
paulevsGitch 2020-12-02 04:14:07 +03:00
parent b375d76956
commit 10fae49f6a
10 changed files with 51 additions and 15 deletions

View file

@ -59,6 +59,7 @@ public class BiomeDefinition {
private final Identifier id;
private float genChance = 1F;
private boolean hasCaves = true;
private ConfiguredSurfaceBuilder<?> surface;
@ -198,6 +199,11 @@ public class BiomeDefinition {
this.music = music;
return this;
}
public BiomeDefinition setCaves(boolean hasCaves) {
this.hasCaves = hasCaves;
return this;
}
public Biome build() {
SpawnSettings.Builder spawnSettings = new SpawnSettings.Builder();
@ -255,4 +261,8 @@ public class BiomeDefinition {
public float getGenChance() {
return genChance;
}
public boolean hasCaves() {
return hasCaves;
}
}