Re added sky properties
Changes to be committed: new file: src/main/java/org/dimdev/dimdoors/client/LimboSkyProperties.java modified: src/min/java/org/dimdev/dimdoors/client/ModRendering.java modified: src/main/java/org/dimdev/dimdoors/world/ModBiomes.java
This commit is contained in:
parent
c85f1f2411
commit
2a5e366aa3
3 changed files with 24 additions and 2 deletions
|
@ -0,0 +1,20 @@
|
|||
package org.dimdev.dimdoors.client;
|
||||
|
||||
import net.minecraft.client.render.SkyProperties;
|
||||
import net.minecraft.util.math.Vec3d;
|
||||
|
||||
public class LimboSkyProperties extends SkyProperties {
|
||||
public LimboSkyProperties() {
|
||||
super(Float.NaN, true, SkyType.NORMAL, true, true);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Vec3d adjustSkyColor(Vec3d color, float sunHeight) {
|
||||
return color;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean useThickFog(int camX, int camY) {
|
||||
return true;
|
||||
}
|
||||
}
|
|
@ -35,6 +35,7 @@ public class ModRendering {
|
|||
OpenWorlds.registerSkyRenderer(ModDimensions.LIMBO_TYPE_KEY, new LimboSkyProvider());
|
||||
OpenWorlds.registerCloudRenderer(ModDimensions.LIMBO_TYPE_KEY, (minecraftClient, matrixStack, v, v1, v2, v3) -> {
|
||||
});
|
||||
OpenWorlds.registerSkyProperty(ModDimensions.LIMBO_TYPE_KEY, new LimboSkyProperties());
|
||||
setupFluidRendering(ModFluids.ETERNAL_FLUID, ModFluids.FLOWING_ETERNAL_FLUID, new Identifier("dimdoors:eternal_fluid"));
|
||||
}
|
||||
|
||||
|
|
|
@ -69,11 +69,12 @@ public final class ModBiomes {
|
|||
.depth(0.1f)
|
||||
.downfall(0.0f)
|
||||
.effects(new BiomeEffects.Builder()
|
||||
.fogColor(0x404040)
|
||||
.fogColor(0x000000)
|
||||
.waterColor(0x101010)
|
||||
.foliageColor(0)
|
||||
.waterFogColor(0)
|
||||
.moodSound(new BiomeMoodSound(ModSoundEvents.CREEPY, 6000, 8, 2.0))
|
||||
.moodSound(new BiomeMoodSound(ModSoundEvents.CRACK, 6000, 8, 2.0))
|
||||
.loopSound(ModSoundEvents.CREEPY)
|
||||
.skyColor(0x404040)
|
||||
.grassColor(0)
|
||||
.build())
|
||||
|
|
Loading…
Reference in a new issue