Skip to content

Instantly share code, notes, and snippets.

@nidefawl
Created July 24, 2015 20:40
Show Gist options
  • Save nidefawl/fcd63a6162850ff2b372 to your computer and use it in GitHub Desktop.
Save nidefawl/fcd63a6162850ff2b372 to your computer and use it in GitHub Desktop.
private static void associateFeatures()
{
associateFeature("generateQuicksand", new WorldGenSplotches(BOPCBlocks.mud, 1, 24, Blocks.grass, Blocks.dirt, Blocks.sand));
associateFeature("generateCanyon", new WorldGenSplotches(BOPCBlocks.rocks, 0, 48, Blocks.stone));
associateFeature("generateStoneInGrass", new WorldGenSplotches(Blocks.stone, 0, 32, Blocks.grass));
associateFeature("generateStoneInGrass2", new WorldGenSplotches(Blocks.stone, 0, 48, Blocks.grass, Blocks.dirt));
associateFeature("generateGrass", new WorldGenSplotches(Blocks.grass, 0, 48, BOPCBlocks.rocks));
associateFeature("generateSand", new WorldGenSplotches(Blocks.sand, 0, 32, BOPCBlocks.rocks));
associateFeature("generateQuagmire", new WorldGenSplotches(Blocks.grass, 0, 48, BOPCBlocks.mud));
associateFeature("generateAsh", new WorldGenSplotches(BOPCBlocks.ash, 0, 32, BOPCBlocks.ashStone, Blocks.netherrack));
associateFeature("generateMycelium", new WorldGenSplotches(Blocks.mycelium, 0, 32, Blocks.grass));
associateFeature("generateSponge", new WorldGenSplotches(Blocks.sponge, 0, 24, Blocks.dirt, Blocks.sand, Blocks.gravel));
associateFeature("mudPerChunk", new WorldGenWaterside(BOPCBlocks.mud, 7, Blocks.dirt, Blocks.grass));
associateFeature("gravelPerChunk", new WorldGenWaterside(Blocks.gravel, 7, Blocks.dirt, Blocks.grass));
associateFeature("riverCanePerChunk", new WorldGenRiverCane());
associateFeature("shrubsPerChunk", new WorldGenBOPFlora(BOPCBlocks.foliage, 9));
associateFeature("bushesPerChunk", new WorldGenBOPFlora(BOPCBlocks.foliage, 4));
associateFeature("cloverPatchesPerChunk", new WorldGenBOPFlora(BOPCBlocks.foliage, 13, 128));
associateFeature("leafPilesPerChunk", new WorldGenBOPFlora(BOPCBlocks.foliage, 14, 256));
associateFeature("deadLeafPilesPerChunk", new WorldGenBOPFlora(BOPCBlocks.foliage, 15, 256));
associateFeature("lavenderPerChunk", new WorldGenBOPFlora(BOPCBlocks.flowers2, 3));
associateFeature("thornsPerChunk", new WorldGenBOPFlora(BOPCBlocks.plants, 5));
associateFeature("stalagmitesPerChunk", new WorldGenBOPUndergroundDecoration(BOPCBlocks.stoneFormations, 0));
associateFeature("stalactitesPerChunk", new WorldGenBOPUndergroundDecoration(BOPCBlocks.stoneFormations, 1));
associateFeature("desertSproutsPerChunk", new WorldGenBOPFlora(BOPCBlocks.plants, 2));
associateFeature("desertGrassPerChunk", new WorldGenBOPFlora(BOPCBlocks.plants, 3));
associateFeature("bromeliadsPerChunk", new WorldGenBOPFlora(BOPCBlocks.flowers, 12));
associateFeature("waterReedsPerChunk", new WorldGenWaterReeds());
associateFeature("wildCarrotsPerChunk", new WorldGenBOPFlora(BOPCBlocks.plants, 11));
associateFeature("poisonIvyPerChunk", new WorldGenBOPFlora(BOPCBlocks.foliage, 7));
associateFeature("berryBushesPerChunk", new WorldGenBOPFlora(BOPCBlocks.foliage, 8));
associateFeature("wildRicePerChunk", new WorldGenBOPFlora(BOPCBlocks.plants, 6));
associateFeature("portobellosPerChunk", new WorldGenBOPFlora(BOPCBlocks.mushrooms, 1));
associateFeature("koruPerChunk", new WorldGenBOPFlora(BOPCBlocks.foliage, 12));
associateFeature("toadstoolsPerChunk", new WorldGenBOPFlora(BOPCBlocks.mushrooms, 0));
associateFeature("blueMilksPerChunk", new WorldGenBOPFlora(BOPCBlocks.mushrooms, 2));
associateFeature("cattailsPerChunk", new WorldGenBOPFlora(BOPCBlocks.plants, 7));
associateFeature("highCattailsPerChunk", new WorldGenBOPDoubleFlora(BOPCBlocks.plants, BOPCBlocks.plants, 10, 9));
associateFeature("flaxPerChunk", new WorldGenBOPDoubleFlora(BOPCBlocks.foliage, BOPCBlocks.foliage, 3, 6, 24));
associateFeature("bopLilyPerChunk", new WorldGenBOPLily(BOPCBlocks.lilyBop, 0, 128));
associateFeature("algaePerChunk", new WorldGenBOPFlora(BOPCBlocks.foliage, 0, 256));
associateFeature("sproutsPerChunk", new WorldGenBOPFlora(BOPCBlocks.foliage, 5));
associateFeature("tinyCactiPerChunk", new WorldGenBOPFlora(BOPCBlocks.plants, 12));
associateFeature("oasesPerChunk", new WorldGenWaterside(Blocks.grass, 7, Blocks.sand, Blocks.hardened_clay));
associateFeature("minersDelightPerChunk", new WorldGenBOPUndergroundDecoration(BOPCBlocks.flowers2, 6));
associateFeature("rootsPerChunk", new WorldGenBOPFlora(BOPCBlocks.plants, 15));
associateFeature("grassSplatterPerChunk", new WorldGenGrassSplatter());
associateFeature("xericSplatterPerChunk", new WorldGenXericSplatter());
associateFeature("rockpilesPerChunk", new WorldGenBOPBlob(Blocks.cobblestone, 0));
associateFeature("wastelandRockPilesPerChunk", new WorldGenBOPBlob(BOPCBlocks.driedDirt, 0));
associateFeature("logsPerChunk", new WorldGenLog());
associateFeature("lavaSpoutsPerChunk", new WorldGenLavaSpout());
associateFeature("cobwebsPerChunk", new WorldGenBOPFlora(Blocks.web, 0));
associateFeature("cobwebNestsPerChunk", new WorldGenCobwebNest());
associateFeature("wasteland1PerChunk", new WorldGenWasteland());
associateFeature("wasteland2PerChunk", new WorldGenWasteland2());
associateFeature("wasteland3PerChunk", new WorldGenWasteland3());
associateFeature("wasteland4PerChunk", new WorldGenWasteland4());
associateFeature("smolderingGrassPerChunk", new WorldGenSplatter(BOPCBlocks.bopGrass, 1, BOPCBlocks.ash, Blocks.netherrack));
associateFeature("sandSplatterPerChunk", new WorldGenSplatter(Blocks.sand, Blocks.grass));
associateFeature("gravelSplatterPerChunk", new WorldGenSplatter(Blocks.gravel, Blocks.grass));
associateFeature("redSandSplatterPerChunk", new WorldGenSplatter(Blocks.sand, 1, BOPCBlocks.hardSand));
associateFeature("dirtSplatterPerChunk", new WorldGenSplatter(Blocks.dirt, 1, Blocks.grass));
associateFeature("sandstoneSpikesPerChunk", new WorldGenSandstoneSpike());
associateFeature("glowshroomsPerChunk", new WorldGenBOPFlora(BOPCBlocks.mushrooms, 3));
associateFeature("bopBigMushroomsPerChunk", new WorldGenBOPBigMushroom(Blocks.dirt, Blocks.grass, Blocks.mycelium, BOPCBlocks.overgrownNetherrack));
//Ocean Features
associateFeature("seaweedPerChunk", new WorldGenBOPCoral(BOPCBlocks.coral2, 8, 256));
associateFeature("coralPerChunk", new WorldGenBOPCoral(BOPCBlocks.coral1, -1));
associateFeature("kelpPerChunk", new WorldGenKelp(4, 8));
associateFeature("kelpThickPerChunk", new WorldGenKelp(4, 8));
associateFeature("shortKelpPerChunk", new WorldGenKelp(2, 4));
//Nether Features
associateFeature("waspHivesPerChunk", new WorldGenWaspHive());
associateFeature("boneSpinesUpPerChunk", new WorldGenBoneSpine(false));
associateFeature("boneSpinesDownPerChunk", new WorldGenBoneSpine(true));
associateFeature("netherLavaLakesPerChunk", new WorldGenLakesNether());
associateFeature("netherVinesPerChunk", new WorldGenLongVine(BOPCBlocks.ivy, 15, 45));
associateFeature("netherrackSplatterPerChunk", new WorldGenSplatter(Blocks.netherrack, BOPCBlocks.overgrownNetherrack));
associateFeature("gravesPerChunk", new WorldGenGrave());
associateFeature("bopFlowersPerChunk", new WorldGenBOPFlowerManager());
associateFeature("bopGrassPerChunk", new WorldGenBOPGrassManager());
}
private static void associateFeaturesForced()
{
associateFeatureForced("waterSpringsPerChunk", new WorldGenLiquids(Blocks.flowing_water), SpringForcedGenerator.class);
associateFeatureForced("lavaSpringsPerChunk", new WorldGenLiquids(Blocks.flowing_lava), SpringForcedGenerator.class);
//associateFeatureForced("bloodSpringsPerChunk", new WorldGenLiquids(BOPCBlocks.blood), SpringForcedGenerator.class);
associateFeatureForced("waterLakesPerChunk", new WorldGenLakes(Blocks.water), LakesForcedGenerator.class);
associateFeatureForced("lavaLakesPerChunk", new WorldGenLakes(Blocks.lava), LakesForcedGenerator.class);
associateFeatureForced("poisonLakesPerChunk", new WorldGenLakes(BOPCBlocks.poison), LakesForcedGenerator.class);
associateFeatureForced("bloodLakesPerChunk", new WorldGenLakes(BOPCBlocks.blood), LakesForcedGenerator.class);
associateFeatureForced("generateMelons", new WorldGenMelon(), MelonForcedGenerator.class);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment