[Changes] Simplified and streamlined some aspects of BCLBiomeRegistry
`
This commit is contained in:
parent
82c9b62fd3
commit
ce9288d4e3
16 changed files with 63 additions and 138 deletions
|
@ -1,6 +1,5 @@
|
|||
package org.betterx.worlds.together.levelgen;
|
||||
|
||||
import org.betterx.bclib.api.v2.levelgen.biomes.BCLBiome;
|
||||
import org.betterx.worlds.together.WorldsTogether;
|
||||
import org.betterx.worlds.together.biomesource.BiomeSourceWithConfig;
|
||||
import org.betterx.worlds.together.biomesource.ReloadableBiomeSource;
|
||||
|
@ -100,19 +99,14 @@ public class WorldGenUtil {
|
|||
}
|
||||
|
||||
public static class Context extends StemContext {
|
||||
public final HolderGetter<Biome> biomes;
|
||||
public final HolderGetter<BCLBiome> bclBiomes;
|
||||
|
||||
|
||||
public Context(
|
||||
HolderGetter<Biome> biomes,
|
||||
HolderGetter<BCLBiome> bclBiomes,
|
||||
Holder<DimensionType> dimension,
|
||||
HolderGetter<StructureSet> structureSets,
|
||||
Holder<NoiseGeneratorSettings> generatorSettings
|
||||
) {
|
||||
super(dimension, structureSets, generatorSettings);
|
||||
this.biomes = biomes;
|
||||
this.bclBiomes = bclBiomes;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
package org.betterx.worlds.together.mixin.common;
|
||||
|
||||
import org.betterx.bclib.api.v2.levelgen.biomes.BCLBiomeRegistry;
|
||||
import org.betterx.worlds.together.surfaceRules.SurfaceRuleRegistry;
|
||||
|
||||
import net.minecraft.core.RegistrySetBuilder;
|
||||
|
@ -20,6 +21,11 @@ public class VanillaRegistriesMixin {
|
|||
|
||||
@Inject(method = "<clinit>", at = @At(value = "TAIL"))
|
||||
private static void together_registerSurface(CallbackInfo ci) {
|
||||
BUILDER.add(
|
||||
BCLBiomeRegistry.BCL_BIOMES_REGISTRY,
|
||||
BCLBiomeRegistry::bootstrap
|
||||
);
|
||||
|
||||
BUILDER.add(
|
||||
SurfaceRuleRegistry.SURFACE_RULES_REGISTRY,
|
||||
SurfaceRuleRegistry::bootstrap
|
||||
|
|
|
@ -115,16 +115,12 @@ public class WorldPresets {
|
|||
|
||||
HolderGetter<BCLBiome> bclBiomes = bootstapContext.lookup(BCLBiomeRegistry.BCL_BIOMES_REGISTRY);
|
||||
this.netherContext = new WorldGenUtil.Context(
|
||||
this.biomes,
|
||||
bclBiomes,
|
||||
this.netherStem.type(),
|
||||
this.structureSets,
|
||||
netherSettings
|
||||
);
|
||||
|
||||
this.endContext = new WorldGenUtil.Context(
|
||||
this.biomes,
|
||||
bclBiomes,
|
||||
this.endStem.type(),
|
||||
this.structureSets,
|
||||
endSettings
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue