Biome def sky color

This commit is contained in:
paulevsGitch 2021-10-28 17:37:58 +03:00
parent b66c8cd5a6
commit d33cb707fd

View file

@ -65,6 +65,7 @@ public class BCLBiomeDef {
private int waterFogColor = 329011; private int waterFogColor = 329011;
private int waterColor = 4159204; private int waterColor = 4159204;
private int fogColor = 10518688; private int fogColor = 10518688;
private int skyColor = 0;
private float fogDensity = 1F; private float fogDensity = 1F;
private float depth = 0.1F; private float depth = 0.1F;
@ -242,11 +243,24 @@ public class BCLBiomeDef {
return ColorUtil.color(r, g, b); return ColorUtil.color(r, g, b);
} }
public BCLBiomeDef setFogColor(int r, int g, int b) { public BCLBiomeDef setSkyColor(int rgb) {
this.fogColor = getColor(r, g, b); this.skyColor = rgb;
return this; 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) { public BCLBiomeDef setFogDensity(float density) {
this.fogDensity = density; this.fogDensity = density;
return this; return this;
@ -327,7 +341,7 @@ public class BCLBiomeDef {
addCustomToBuild(generationSettings); addCustomToBuild(generationSettings);
effects.skyColor(0) effects.skyColor(skyColor)
.waterColor(waterColor) .waterColor(waterColor)
.waterFogColor(waterFogColor) .waterFogColor(waterFogColor)
.fogColor(fogColor) .fogColor(fogColor)
@ -339,16 +353,17 @@ public class BCLBiomeDef {
if (particleConfig != null) effects.ambientParticle(particleConfig); if (particleConfig != null) effects.ambientParticle(particleConfig);
effects.backgroundMusic(music != null ? new Music(music, 600, 2400, true) : Musics.END); effects.backgroundMusic(music != null ? new Music(music, 600, 2400, true) : Musics.END);
return new Biome.BiomeBuilder().precipitation(precipitation) return new Biome.BiomeBuilder()
.biomeCategory(category) .precipitation(precipitation)
.depth(depth) .biomeCategory(category)
.scale(0.2F) .depth(depth)
.temperature(temperature) .scale(0.2F)
.downfall(downfall) .temperature(temperature)
.specialEffects(effects.build()) .downfall(downfall)
.mobSpawnSettings(spawnSettings.build()) .specialEffects(effects.build())
.generationSettings(generationSettings.build()) .mobSpawnSettings(spawnSettings.build())
.build(); .generationSettings(generationSettings.build())
.build();
} }
private static final class SpawnInfo { private static final class SpawnInfo {