Skip to content

Commit

Permalink
Added support for ravines.
Browse files Browse the repository at this point in the history
  • Loading branch information
whichonespink44 committed Nov 9, 2015
1 parent 8112803 commit 607e9d3
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/main/java/rtg/world/gen/ChunkProviderRTG.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

import static net.minecraftforge.event.terraingen.InitMapGenEvent.EventType.CAVE;
import static net.minecraftforge.event.terraingen.InitMapGenEvent.EventType.MINESHAFT;
import static net.minecraftforge.event.terraingen.InitMapGenEvent.EventType.RAVINE;
import static net.minecraftforge.event.terraingen.InitMapGenEvent.EventType.SCATTERED_FEATURE;
import static net.minecraftforge.event.terraingen.InitMapGenEvent.EventType.STRONGHOLD;
import static net.minecraftforge.event.terraingen.InitMapGenEvent.EventType.VILLAGE;
import static net.minecraftforge.event.terraingen.OreGenEvent.GenerateMinable.EventType.COAL;
import static net.minecraftforge.event.terraingen.OreGenEvent.GenerateMinable.EventType.CUSTOM;
import static net.minecraftforge.event.terraingen.OreGenEvent.GenerateMinable.EventType.DIAMOND;
import static net.minecraftforge.event.terraingen.OreGenEvent.GenerateMinable.EventType.DIRT;
import static net.minecraftforge.event.terraingen.OreGenEvent.GenerateMinable.EventType.GOLD;
Expand Down Expand Up @@ -44,6 +44,7 @@
import net.minecraft.world.chunk.IChunkProvider;
import net.minecraft.world.gen.MapGenBase;
import net.minecraft.world.gen.MapGenCaves;
import net.minecraft.world.gen.MapGenRavine;
import net.minecraft.world.gen.feature.WorldGenDungeons;
import net.minecraft.world.gen.feature.WorldGenFlowers;
import net.minecraft.world.gen.feature.WorldGenLakes;
Expand All @@ -70,7 +71,8 @@ public class ChunkProviderRTG implements IChunkProvider
* Declare variables.
*/

private final MapGenBase caves;
private final MapGenBase caveGenerator;
private final MapGenBase ravineGenerator;
private final MapGenStronghold strongholdGenerator;
private final MapGenMineshaft mineshaftGenerator;
private final MapGenVillage villageGenerator;
Expand Down Expand Up @@ -112,7 +114,8 @@ public ChunkProviderRTG(World world, long l)
{
mapFeaturesEnabled = world.getWorldInfo().isMapFeaturesEnabled();

caves = TerrainGen.getModdedMapGen(new MapGenCaves(), CAVE);
caveGenerator = TerrainGen.getModdedMapGen(new MapGenCaves(), CAVE);
ravineGenerator = TerrainGen.getModdedMapGen(new MapGenRavine(), RAVINE);
worldObj = world;
cmr = (WorldChunkManagerRTG)worldObj.getWorldChunkManager();
worldHeight = worldObj.provider.getActualHeight();
Expand Down Expand Up @@ -188,7 +191,8 @@ public Chunk provideChunk(int cx, int cy)

replaceBlocksForBiome(cx, cy, blocks, metadata, biomesForGeneration, baseBiomesList, noise);

caves.func_151539_a(this, worldObj, cx, cy, blocks);
caveGenerator.func_151539_a(this, worldObj, cx, cy, blocks);
ravineGenerator.func_151539_a(this, worldObj, cx, cy, blocks);

if (mapFeaturesEnabled) {
mineshaftGenerator.func_151539_a(this, this.worldObj, cx, cy, blocks);
Expand Down

0 comments on commit 607e9d3

Please sign in to comment.