Merge branch 'master' of https://github.com/paulevsGitch/BetterEnd
This commit is contained in:
commit
58a5d37121
9 changed files with 75 additions and 30 deletions
|
@ -10,6 +10,7 @@ import net.minecraft.util.registry.BuiltinRegistries;
|
|||
import net.minecraft.util.registry.Registry;
|
||||
import net.minecraft.util.registry.RegistryKey;
|
||||
import net.minecraft.world.biome.Biome;
|
||||
import net.minecraft.world.biome.Biome.Category;
|
||||
import net.minecraft.world.biome.BiomeKeys;
|
||||
import ru.betterend.world.biome.BiomeFoggyMushroomland;
|
||||
import ru.betterend.world.biome.EndBiome;
|
||||
|
@ -33,10 +34,22 @@ public class BiomeRegistry {
|
|||
|
||||
public static void mutateRegistry(Registry<Biome> biomeRegistry) {
|
||||
BiomeRegistry.MUTABLE.clear();
|
||||
LAND_BIOMES.clearMutables();
|
||||
|
||||
for (EndBiome biome : BiomeRegistry.LAND_BIOMES.getBiomes())
|
||||
BiomeRegistry.MUTABLE.put(biomeRegistry.getOrThrow(BiomeRegistry.getBiomeKey(biome)), biome);
|
||||
for (EndBiome biome : BiomeRegistry.VOID_BIOMES.getBiomes())
|
||||
BiomeRegistry.MUTABLE.put(biomeRegistry.getOrThrow(BiomeRegistry.getBiomeKey(biome)), biome);
|
||||
|
||||
biomeRegistry.forEach((biome) -> {
|
||||
if (biome.getCategory() == Category.THEEND) {
|
||||
if (!MUTABLE.containsKey(biome) && !biomeRegistry.getId(biome).getNamespace().equals("minecraft")) {
|
||||
EndBiome endBiome = new EndBiome(biome);
|
||||
LAND_BIOMES.addBiomeMutable(endBiome);
|
||||
KEYS.put(endBiome, biomeRegistry.getKey(biome).get());
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public static EndBiome registerBiome(RegistryKey<Biome> key, BiomeType type, boolean addToGen) {
|
||||
|
|
|
@ -6,7 +6,7 @@ import ru.betterend.world.features.StoneSpiralFeature;
|
|||
|
||||
public class FeatureRegistry {
|
||||
public static final EndFeature STONE_SPIRAL = new EndFeature("stone_spiral", new StoneSpiralFeature(), 2);
|
||||
public static final EndFeature END_LAKE = new EndFeature("end_lake", new EndLakeFeature());
|
||||
public static final EndFeature END_LAKE = EndFeature.MakeRawGenFeature("end_lake", new EndLakeFeature(), 100);
|
||||
|
||||
public static void register() {}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue