[Fix] Remove old Enderscape Integration (again)
This commit is contained in:
parent
2eed66008a
commit
d1eee13a31
2 changed files with 0 additions and 52 deletions
|
@ -1,51 +0,0 @@
|
|||
package org.betterx.betterend.integration;
|
||||
|
||||
import net.minecraft.core.Holder;
|
||||
import net.minecraft.core.MappedRegistry;
|
||||
import net.minecraft.resources.ResourceKey;
|
||||
import net.minecraft.world.level.biome.Biome;
|
||||
import net.minecraft.world.level.levelgen.GenerationStep.Decoration;
|
||||
|
||||
import org.betterx.bclib.api.v2.levelgen.features.BCLFeature;
|
||||
import org.betterx.bclib.api.v2.tag.CommonBlockTags;
|
||||
import org.betterx.bclib.api.v2.tag.TagAPI;
|
||||
import org.betterx.bclib.api.v2.levelgen.biomes.BiomeAPI;
|
||||
import org.betterx.bclib.integration.ModIntegration;
|
||||
|
||||
public class EnderscapeIntegration extends ModIntegration {
|
||||
public EnderscapeIntegration() {
|
||||
super("enderscape");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void init() {
|
||||
Class<?> enderscape = getClass("net.enderscape.Enderscape");
|
||||
Class<?> enderscapeIslandsBiome = getClass("net.enderscape.world.biomes.EnderscapeIslandsBiome");
|
||||
MappedRegistry<?> biomes = getStaticFieldValue(enderscape, "ENDERSCAPE_BIOME");
|
||||
biomes.entrySet().forEach(entry -> {
|
||||
ResourceKey key = entry.getKey();
|
||||
Holder<Biome> biome = getBiome(key.location().getPath());
|
||||
if (enderscapeIslandsBiome.isInstance(entry.getValue())) {
|
||||
BiomeAPI.registerEndVoidBiome(biome);
|
||||
} else {
|
||||
BiomeAPI.registerEndLandBiome(biome);
|
||||
}
|
||||
});
|
||||
|
||||
BCLFeature scatteredShadowQuartzOre = getFeature("scattered_shadow_quartz_ore",
|
||||
Decoration.UNDERGROUND_DECORATION);
|
||||
BCLFeature voidNebuliteOre = getFeature("void_nebulite_ore", Decoration.UNDERGROUND_DECORATION);
|
||||
BCLFeature nebuliteOre = getFeature("nebulite_ore", Decoration.UNDERGROUND_DECORATION);
|
||||
|
||||
BiomeAPI.registerEndBiomeModification((biomeID, biome) -> {
|
||||
if (!biomeID.getNamespace().equals("enderscape")) {
|
||||
BiomeAPI.addBiomeFeature(biome, scatteredShadowQuartzOre);
|
||||
BiomeAPI.addBiomeFeature(biome, voidNebuliteOre);
|
||||
BiomeAPI.addBiomeFeature(biome, nebuliteOre);
|
||||
}
|
||||
});
|
||||
|
||||
TagAPI.addBlockTag(CommonBlockTags.END_STONES, getBlock("nebulite_ore"));
|
||||
TagAPI.addBlockTag(CommonBlockTags.END_STONES, getBlock("shadow_quartz_ore"));
|
||||
}
|
||||
}
|
|
@ -20,7 +20,6 @@ public class Integrations {
|
|||
public static final ModIntegration BYG = ModIntegrationAPI.register(new BYGIntegration());
|
||||
public static final ModIntegration NOURISH = ModIntegrationAPI.register(new NourishIntegration());
|
||||
public static final ModIntegration FLAMBOYANT_REFABRICATED = ModIntegrationAPI.register(new FlamboyantRefabricatedIntegration());
|
||||
public static final ModIntegration ENDERSCAPE = ModIntegrationAPI.register(new EnderscapeIntegration());
|
||||
|
||||
private static boolean hasHydrogen;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue