Mutable registry
This commit is contained in:
parent
de7c7e1cdb
commit
b89afced36
4 changed files with 42 additions and 0 deletions
|
@ -51,6 +51,7 @@ public class BiomeDefinition {
|
|||
private float fogDensity = 1F;
|
||||
|
||||
private final Identifier id;
|
||||
private float genChance = 1F;
|
||||
|
||||
private ConfiguredSurfaceBuilder<?> surface;
|
||||
|
||||
|
@ -86,6 +87,11 @@ public class BiomeDefinition {
|
|||
this.particleConfig = config;
|
||||
return this;
|
||||
}
|
||||
|
||||
public BiomeDefinition setGenChance(float genChance) {
|
||||
this.genChance = genChance;
|
||||
return this;
|
||||
}
|
||||
|
||||
public BiomeDefinition addMobSpawn(EntityType<?> type, int weight, int minGroupSize, int maxGroupSize) {
|
||||
Identifier eID = Registry.ENTITY_TYPE.getId(type);
|
||||
|
@ -223,4 +229,8 @@ public class BiomeDefinition {
|
|||
public float getFodDensity() {
|
||||
return fogDensity;
|
||||
}
|
||||
|
||||
public float getGenChance() {
|
||||
return genChance;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue