Biome def switch
This commit is contained in:
parent
ff4ef86c6d
commit
1ad72cbe88
44 changed files with 170 additions and 284 deletions
|
@ -3,22 +3,16 @@ package ru.betterend.world.biome;
|
|||
import net.minecraft.resources.ResourceLocation;
|
||||
import net.minecraft.world.level.biome.Biome;
|
||||
import ru.bclib.world.biomes.BCLBiome;
|
||||
import ru.bclib.world.biomes.BCLBiomeDef;
|
||||
import ru.betterend.config.Configs;
|
||||
|
||||
public class EndBiome extends BCLBiome {
|
||||
private final boolean hasCaves;
|
||||
|
||||
public EndBiome(BiomeDefinition definition) {
|
||||
public EndBiome(BCLBiomeDef definition) {
|
||||
super(definition.loadConfigValues(Configs.BIOME_CONFIG));
|
||||
this.hasCaves = Configs.BIOME_CONFIG.getBoolean(mcID, "has_caves", definition.hasCaves());
|
||||
}
|
||||
|
||||
public EndBiome(ResourceLocation id, Biome biome, float fogDensity, float genChance, boolean hasCaves) {
|
||||
super(id, biome, fogDensity, genChance);
|
||||
this.hasCaves = Configs.BIOME_CONFIG.getBoolean(mcID, "has_caves", hasCaves);
|
||||
}
|
||||
|
||||
public boolean hasCaves() {
|
||||
return hasCaves;
|
||||
this.addCustomData("has_caves", hasCaves);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue