Vertical biomes distribution prototype
This commit is contained in:
parent
330530de73
commit
6cb75406cb
17 changed files with 213 additions and 65 deletions
|
@ -36,6 +36,7 @@ public class BCLBiome {
|
|||
private float fogDensity = 1.0F;
|
||||
private float genChance = 1.0F;
|
||||
private float edgeSize = 0.0F;
|
||||
private boolean vertical;
|
||||
|
||||
/**
|
||||
* Create wrapper for existing biome using its {@link ResourceLocation} identifier.
|
||||
|
@ -291,6 +292,32 @@ public class BCLBiome {
|
|||
return terrainHeight;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set biome vertical distribution (for tall Nether only).
|
||||
* @return same {@link BCLBiome}.
|
||||
*/
|
||||
public BCLBiome setVertical() {
|
||||
return setVertical(true);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set biome vertical distribution (for tall Nether only).
|
||||
* @param vertical {@code boolean} value.
|
||||
* @return same {@link BCLBiome}.
|
||||
*/
|
||||
public BCLBiome setVertical(boolean vertical) {
|
||||
this.vertical = vertical;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if biome is vertical, for tall Nether only (or for custom generators).
|
||||
* @return is biome vertical or not.
|
||||
*/
|
||||
public boolean isVertical() {
|
||||
return vertical;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
if (obj == this) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue