-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
40a95a4
commit f6ded3f
Showing
15 changed files
with
202 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
src/main/java/androsa/gaiadimension/biomes/GDGreenAgateJungle.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
package androsa.gaiadimension.biomes; | ||
|
||
import androsa.gaiadimension.block.GDCrystalBloom; | ||
import androsa.gaiadimension.block.GDCrystalGrowth; | ||
import androsa.gaiadimension.registry.GDBlocks; | ||
import androsa.gaiadimension.world.GDGenCrystalBloom; | ||
import androsa.gaiadimension.world.GDGenCrystalGrowth; | ||
import androsa.gaiadimension.world.GDGenGreenAgateTree; | ||
import androsa.gaiadimension.world.GDGenNoTrees; | ||
import net.minecraft.world.biome.Biome; | ||
import net.minecraft.world.gen.feature.WorldGenAbstractTree; | ||
import net.minecraft.world.gen.feature.WorldGenTrees; | ||
import net.minecraft.world.gen.feature.WorldGenerator; | ||
|
||
import java.util.Random; | ||
|
||
public class GDGreenAgateJungle extends GDBiomeBase { | ||
|
||
private WorldGenTrees GaiaGenGreenTrees; | ||
|
||
public GDGreenAgateJungle(Biome.BiomeProperties props) { | ||
super(props); | ||
|
||
GaiaGenGreenTrees = new GDGenGreenAgateTree(false); | ||
|
||
topBlock = GDBlocks.glitterGrass.getDefaultState(); | ||
fillerBlock = GDBlocks.heavySoil.getDefaultState(); | ||
} | ||
|
||
@Override | ||
public WorldGenAbstractTree getRandomTreeFeature(Random par1Random) { | ||
return par1Random.nextInt(10) == 0 ? new GDGenNoTrees() : par1Random.nextInt(2) == 0 ? GaiaGenGreenTrees : new GDGenNoTrees(); | ||
} | ||
|
||
@Override | ||
public WorldGenerator getRandomWorldGenForGrass(Random rand) { | ||
|
||
//TODO: Find a way to not generate poppies and dandelions | ||
if (rand.nextInt(16) == 0) { | ||
if (rand.nextInt(4) == 0) { | ||
return new GDGenCrystalBloom(GDCrystalBloom.CrystalBloomVariant.OUZIUM); | ||
} else { | ||
return new GDGenCrystalBloom(GDCrystalBloom.CrystalBloomVariant.THISCUS); | ||
} | ||
} else { | ||
return new GDGenCrystalGrowth(GDCrystalGrowth.CrystalGrowthVariant.GREEN); | ||
} | ||
} | ||
} |
36 changes: 36 additions & 0 deletions
36
src/main/java/androsa/gaiadimension/biomes/GDMineralRiver.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package androsa.gaiadimension.biomes; | ||
|
||
import androsa.gaiadimension.registry.GDBlocks; | ||
import net.minecraft.block.BlockBush; | ||
import net.minecraft.util.math.BlockPos; | ||
import net.minecraft.world.World; | ||
import net.minecraft.world.gen.feature.WorldGenBush; | ||
|
||
import java.util.Random; | ||
|
||
public class GDMineralRiver extends GDBiomeBase { | ||
|
||
public GDMineralRiver(BiomeProperties props) { | ||
super(props); | ||
spawnableCreatureList.clear(); | ||
|
||
topBlock = GDBlocks.glitterGrass.getDefaultState(); | ||
fillerBlock = GDBlocks.heavySoil.getDefaultState(); | ||
} | ||
|
||
@Override | ||
public void decorate(World world, Random rand, BlockPos pos) { | ||
for (int l3 = 0; l3 < 4; ++l3) { | ||
if (rand.nextInt(4) == 0) { | ||
int i4 = rand.nextInt(16) + 8; | ||
int k8 = rand.nextInt(16) + 8; | ||
int j12 = world.getHeight(pos.add(i4, 0, k8)).getY() * 2; | ||
|
||
if (j12 > 0) { | ||
int k15 = rand.nextInt(j12); | ||
new WorldGenBush((BlockBush)GDBlocks.crystalBloom).generate(world, rand, pos.add(i4, k15, k8)); | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
src/main/java/androsa/gaiadimension/registry/IColouredBlock.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package androsa.gaiadimension.registry; | ||
|
||
import net.minecraft.block.state.IBlockState; | ||
import net.minecraft.util.math.BlockPos; | ||
import net.minecraft.world.IBlockAccess; | ||
|
||
import javax.annotation.Nullable; | ||
|
||
public interface IColouredBlock { | ||
int getColorMultiplier(IBlockState state, @Nullable IBlockAccess access, @Nullable BlockPos pos, int tintIndex); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.