package biomesoplenty.worldgen.structure; import java.util.Random; import net.minecraft.world.World; import net.minecraft.world.biome.BiomeGenBase; import net.minecraft.world.gen.structure.ComponentScatteredFeatureDesertPyramid; import net.minecraft.world.gen.structure.ComponentScatteredFeatureJunglePyramid; import net.minecraft.world.gen.structure.ComponentScatteredFeatureSwampHut; import net.minecraft.world.gen.structure.StructureStart; import biomesoplenty.api.Biomes; public class BOPStructureScatteredFeatureStart extends StructureStart { public BOPStructureScatteredFeatureStart() {} public BOPStructureScatteredFeatureStart(World world, Random random, int x, int z) { BiomeGenBase biome = world.getBiomeGenForCoords(x * 16 + 8, z * 16 + 8); if (biome != BiomeGenBase.jungle && biome != BiomeGenBase.jungleHills && biome != Biomes.rainforest.get() && biome != Biomes.tropics.get() && biome != Biomes.tropicalRainforest.get() && biome != Biomes.jungleNew.get() && biome != Biomes.bambooForest.get() && biome != Biomes.sacredSprings.get() && biome != Biomes.overgrownGreens.get()) { if (biome == BiomeGenBase.swampland || biome == Biomes.bayou.get() || biome == Biomes.bog.get() || biome == Biomes.deadSwamp.get() || biome == Biomes.fen.get() || biome == Biomes.sludgepit.get() || biome == Biomes.swamplandNew.get() || biome == Biomes.marsh.get() || biome == Biomes.moor.get() || biome == Biomes.ominousWoods.get() || biome == Biomes.quagmire.get() || biome == Biomes.wetland.get() || biome == Biomes.silkglades.get()) { ComponentScatteredFeatureSwampHut componentscatteredfeatureswamphut = new ComponentScatteredFeatureSwampHut(random, x * 16, z * 16); components.add(componentscatteredfeatureswamphut); } else { ComponentScatteredFeatureDesertPyramid componentscatteredfeaturedesertpyramid = new ComponentScatteredFeatureDesertPyramid(random, x * 16, z * 16); components.add(componentscatteredfeaturedesertpyramid); } } else { ComponentScatteredFeatureJunglePyramid componentscatteredfeaturejunglepyramid = new ComponentScatteredFeatureJunglePyramid(random, x * 16, z * 16); components.add(componentscatteredfeaturejunglepyramid); } this.updateBoundingBox(); } }