*WIP*: Merge commit 'ce4cb8974f
' into 1.18
This commit is contained in:
commit
c6a7a1d4f7
76 changed files with 2754 additions and 738 deletions
|
@ -70,6 +70,7 @@ public class BCLBiomeDef {
|
|||
private int waterFogColor = 329011;
|
||||
private int waterColor = 4159204;
|
||||
private int fogColor = 10518688;
|
||||
private int skyColor = 0;
|
||||
private float fogDensity = 1F;
|
||||
private float depth = 0.1F;
|
||||
|
||||
|
@ -247,11 +248,24 @@ public class BCLBiomeDef {
|
|||
return ColorUtil.color(r, g, b);
|
||||
}
|
||||
|
||||
public BCLBiomeDef setFogColor(int r, int g, int b) {
|
||||
this.fogColor = getColor(r, g, b);
|
||||
public BCLBiomeDef setSkyColor(int rgb) {
|
||||
this.skyColor = rgb;
|
||||
return this;
|
||||
}
|
||||
|
||||
public BCLBiomeDef setSkyColor(int r, int g, int b) {
|
||||
return setSkyColor(getColor(r, g, b));
|
||||
}
|
||||
|
||||
public BCLBiomeDef setFogColor(int rgb) {
|
||||
this.fogColor = rgb;
|
||||
return this;
|
||||
}
|
||||
|
||||
public BCLBiomeDef setFogColor(int r, int g, int b) {
|
||||
return setFogColor(getColor(r, g, b));
|
||||
}
|
||||
|
||||
public BCLBiomeDef setFogDensity(float density) {
|
||||
this.fogDensity = density;
|
||||
return this;
|
||||
|
@ -333,7 +347,7 @@ public class BCLBiomeDef {
|
|||
|
||||
addCustomToBuild(generationSettings);
|
||||
|
||||
effects.skyColor(0)
|
||||
effects.skyColor(skyColor)
|
||||
.waterColor(waterColor)
|
||||
.waterFogColor(waterFogColor)
|
||||
.fogColor(fogColor)
|
||||
|
@ -380,9 +394,9 @@ public class BCLBiomeDef {
|
|||
ConfiguredFeature<?, ?> feature;
|
||||
}
|
||||
|
||||
private static final class CarverInfo {
|
||||
private static final class CarverInfo <C extends CarverConfiguration> {
|
||||
Carving carverStep;
|
||||
ConfiguredWorldCarver<CarverConfiguration> carver;
|
||||
ConfiguredWorldCarver<C> carver;
|
||||
}
|
||||
|
||||
public ResourceLocation getID() {
|
||||
|
@ -401,7 +415,7 @@ public class BCLBiomeDef {
|
|||
return edgeSize;
|
||||
}
|
||||
|
||||
public BCLBiomeDef addCarver(Carving carverStep, ConfiguredWorldCarver<CarverConfiguration> carver) {
|
||||
public <C extends CarverConfiguration> BCLBiomeDef addCarver(Carving carverStep, ConfiguredWorldCarver<C> carver) {
|
||||
CarverInfo info = new CarverInfo();
|
||||
info.carverStep = carverStep;
|
||||
info.carver = carver;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue