Fixed surface block setting

This commit is contained in:
Frank 2021-12-08 23:59:53 +01:00
parent 633c5ad553
commit 2a0f58a729
14 changed files with 73 additions and 21 deletions

View file

@ -2,7 +2,6 @@ package ru.betterend.world.biome.land;
import net.minecraft.world.entity.EntityType;
import net.minecraft.world.level.block.state.BlockState;
import net.minecraft.world.level.levelgen.SurfaceRules;
import ru.bclib.api.biomes.BCLBiomeBuilder;
import ru.bclib.api.biomes.SurfaceMaterialProvider;
import ru.betterend.registry.EndBlocks;
@ -26,7 +25,7 @@ public class AmberLandBiome extends EndBiome.Config {
.music(EndSounds.MUSIC_FOREST)
.loop(EndSounds.AMBIENT_AMBER_LAND)
.particles(EndParticles.AMBER_SPHERE, 0.001F)
.surface(SurfaceRules.state(surfaceMaterial().getTopMaterial()))
.surface(surfaceMaterial().getTopMaterial())
.feature(EndFeatures.AMBER_ORE)
.feature(EndFeatures.END_LAKE_RARE)
.feature(EndFeatures.HELIX_TREE)

View file

@ -2,7 +2,6 @@ package ru.betterend.world.biome.land;
import net.minecraft.world.entity.EntityType;
import net.minecraft.world.level.block.state.BlockState;
import net.minecraft.world.level.levelgen.SurfaceRules;
import ru.bclib.api.biomes.BCLBiomeBuilder;
import ru.bclib.api.biomes.SurfaceMaterialProvider;
import ru.betterend.registry.EndBlocks;
@ -26,7 +25,7 @@ public class BlossomingSpiresBiome extends EndBiome.Config {
builder.fogColor(241, 146, 229)
.fogDensity(1.7F)
.plantsColor(122, 45, 122)
.surface(SurfaceRules.state(surfaceMaterial().getTopMaterial()))
.surface(surfaceMaterial().getTopMaterial())
.music(EndSounds.MUSIC_FOREST)
.loop(EndSounds.AMBIENT_BLOSSOMING_SPIRES)
.feature(EndFeatures.SPIRE)

View file

@ -25,7 +25,7 @@ public class ChorusForestBiome extends EndBiome.Config {
.fogDensity(1.5F)
.plantsColor(122, 45, 122)
.waterAndFogColor(73, 30, 73)
.surface(SurfaceRules.state(surfaceMaterial().getTopMaterial()))
.surface(surfaceMaterial().getTopMaterial())
.particles(ParticleTypes.PORTAL, 0.01F)
.loop(EndSounds.AMBIENT_CHORUS_FOREST)
.music(EndSounds.MUSIC_DARK)

View file

@ -20,7 +20,7 @@ public class CrystalMountainsBiome extends EndBiome.Config {
protected void addCustomBuildData(BCLBiomeBuilder builder) {
builder.structure(EndStructures.MOUNTAIN.getFeatureConfigured())
.plantsColor(255, 133, 211)
.surface(SurfaceRules.state(surfaceMaterial().getTopMaterial()))
.surface(surfaceMaterial().getTopMaterial())
.music(EndSounds.MUSIC_OPENSPACE)
.feature(EndFeatures.CRYSTAL_GRASS)
.spawn(EntityType.ENDERMAN, 50, 1, 2);

View file

@ -24,7 +24,7 @@ public class DragonGraveyardsBiome extends EndBiome.Config {
.particles(EndParticles.FIREFLY, 0.0007F)
.music(EndSounds.MUSIC_OPENSPACE)
.loop(EndSounds.AMBIENT_GLOWING_GRASSLANDS)
.surface(SurfaceRules.state(surfaceMaterial().getTopMaterial()))
.surface(surfaceMaterial().getTopMaterial())
.waterAndFogColor(203, 59, 167)
.plantsColor(244, 46, 79)
.feature(EndFeatures.OBSIDIAN_PILLAR_BASEMENT)

View file

@ -21,7 +21,7 @@ public class DryShrublandBiome extends EndBiome.Config {
.fogDensity(1.2F)
.waterAndFogColor(113, 88, 53)
.plantsColor(237, 122, 66)
.surface(SurfaceRules.state(surfaceMaterial().getTopMaterial()))
.surface(surfaceMaterial().getTopMaterial())
.music(EndSounds.MUSIC_OPENSPACE)
.feature(EndFeatures.LUCERNIA_BUSH_RARE)
.feature(EndFeatures.ORANGO)

View file

@ -20,7 +20,7 @@ public class DustWastelandsBiome extends EndBiome.Config {
builder.fogColor(226, 239, 168)
.fogDensity(2)
.waterAndFogColor(192, 180, 131)
.surface(SurfaceRules.state(surfaceMaterial().getTopMaterial()))
.surface(surfaceMaterial().getTopMaterial())
//TODO: 1.18 removed
//.depth(1.5F)
.particles(ParticleTypes.WHITE_ASH, 0.01F)

View file

@ -23,7 +23,7 @@ public class GlowingGrasslandsBiome extends EndBiome.Config {
.particles(EndParticles.FIREFLY, 0.001F)
.music(EndSounds.MUSIC_OPENSPACE)
.loop(EndSounds.AMBIENT_GLOWING_GRASSLANDS)
.surface(SurfaceRules.state(surfaceMaterial().getTopMaterial()))
.surface(surfaceMaterial().getTopMaterial())
.waterAndFogColor(92, 250, 230)
.plantsColor(73, 210, 209)
.feature(EndFeatures.END_LAKE_RARE)

View file

@ -22,7 +22,7 @@ public class LanternWoodsBiome extends EndBiome.Config {
.fogDensity(1.1F)
.waterAndFogColor(171, 234, 226)
.plantsColor(254, 85, 57)
.surface(SurfaceRules.state(surfaceMaterial().getTopMaterial()))
.surface(surfaceMaterial().getTopMaterial())
.music(EndSounds.MUSIC_FOREST)
.particles(EndParticles.GLOWING_SPHERE, 0.001F)
.feature(EndFeatures.END_LAKE_NORMAL)

View file

@ -28,7 +28,7 @@ public class MegalakeGroveBiome extends EndBiome.Config {
.particles(EndParticles.GLOWING_SPHERE, 0.001F)
.music(EndSounds.MUSIC_WATER)
.loop(EndSounds.AMBIENT_MEGALAKE_GROVE)
.surface(SurfaceRules.state(surfaceMaterial().getTopMaterial()))
.surface(surfaceMaterial().getTopMaterial())
//TODO: 1.18 removed
//.depth(0F)
.feature(EndFeatures.LACUGROVE)

View file

@ -24,7 +24,7 @@ public class PaintedMountainsBiome extends EndBiome.Config {
.waterAndFogColor(192, 180, 131)
.music(EndSounds.MUSIC_OPENSPACE)
.loop(EndSounds.AMBIENT_DUST_WASTELANDS)
.surface(SurfaceRules.state(surfaceMaterial().getTopMaterial()))
.surface(surfaceMaterial().getTopMaterial())
.particles(ParticleTypes.WHITE_ASH, 0.01F)
.spawn(EntityType.ENDERMAN, 50, 1, 2);
}

View file

@ -23,7 +23,7 @@ public class ShadowForestBiome extends EndBiome.Config {
.fogDensity(2.5F)
.plantsColor(45, 45, 45)
.waterAndFogColor(42, 45, 80)
.surface(SurfaceRules.state(surfaceMaterial().getTopMaterial()))
.surface(surfaceMaterial().getTopMaterial())
.particles(ParticleTypes.MYCELIUM, 0.01F)
.loop(EndSounds.AMBIENT_CHORUS_FOREST)
.music(EndSounds.MUSIC_DARK)

View file

@ -25,7 +25,7 @@ public class UmbrellaJungleBiome extends EndBiome.Config {
.particles(EndParticles.JUNGLE_SPORE, 0.001F)
.music(EndSounds.MUSIC_FOREST)
.loop(EndSounds.AMBIENT_UMBRELLA_JUNGLE)
.surface(SurfaceRules.state(surfaceMaterial().getTopMaterial()))
.surface(surfaceMaterial().getTopMaterial())
.feature(EndFeatures.END_LAKE)
.feature(EndFeatures.UMBRELLA_TREE)
.feature(EndFeatures.JELLYSHROOM)