add biome sound configs

This commit is contained in:
dfsek
2022-06-16 22:02:08 -07:00
parent 7574c356a0
commit 36682bc04c
3 changed files with 14 additions and 2 deletions
@@ -156,6 +156,10 @@ public class NMSBiomeInjector {
effects.grassColorOverride(vanillaBiomeProperties.getGrassColor()); effects.grassColorOverride(vanillaBiomeProperties.getGrassColor());
} }
vanilla.getAmbientLoop().ifPresent(effects::ambientLoopSound);
vanilla.getAmbientAdditions().ifPresent(effects::ambientAdditionsSound);
vanilla.getAmbientMood().ifPresent(effects::ambientMoodSound);
vanilla.getBackgroundMusic().ifPresent(effects::backgroundMusic);
vanilla.getAmbientParticle().ifPresent(effects::ambientParticle); vanilla.getAmbientParticle().ifPresent(effects::ambientParticle);
builder.specialEffects(effects.build()); builder.specialEffects(effects.build());
@@ -150,6 +150,10 @@ public class NMSBiomeInjector {
effects.grassColorOverride(vanillaBiomeProperties.getGrassColor()); effects.grassColorOverride(vanillaBiomeProperties.getGrassColor());
} }
vanilla.getAmbientLoop().ifPresent(effects::ambientLoopSound);
vanilla.getAmbientAdditions().ifPresent(effects::ambientAdditionsSound);
vanilla.getAmbientMood().ifPresent(effects::ambientMoodSound);
vanilla.getBackgroundMusic().ifPresent(effects::backgroundMusic);
vanilla.getAmbientParticle().ifPresent(effects::ambientParticle); vanilla.getAmbientParticle().ifPresent(effects::ambientParticle);
builder.specialEffects(effects.build()); builder.specialEffects(effects.build());
@@ -151,6 +151,10 @@ public final class BiomeUtil {
builder.precipitation(vanilla.getPrecipitation()); builder.precipitation(vanilla.getPrecipitation());
} }
vanilla.getLoopSound().ifPresent(effects::loopSound);
vanilla.getAdditionsSound().ifPresent(effects::additionsSound);
vanilla.getMoodSound().ifPresent(effects::moodSound);
vanilla.getMusic().ifPresent(effects::music);
vanilla.getParticleConfig().ifPresent(effects::particleConfig); vanilla.getParticleConfig().ifPresent(effects::particleConfig);
return builder return builder