Updated for 1.7.2
This commit is contained in:
parent
cc178e1a3b
commit
29228e18fe
105 changed files with 1939 additions and 2690 deletions
|
|
@ -1,12 +1,13 @@
|
|||
package mysticworld.biome;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.world.biome.BiomeGenBase;
|
||||
|
||||
public class BiomeGenBasic extends BiomeGenBase {
|
||||
public BiomeGenBasic(int id, int blockTop, int blockFiller) {
|
||||
public BiomeGenBasic(int id, Block blockTop, Block blockFiller) {
|
||||
super(id);
|
||||
this.topBlock = (byte) blockTop;
|
||||
this.fillerBlock = (byte) blockFiller;
|
||||
this.topBlock = blockTop;
|
||||
this.fillerBlock = blockFiller;
|
||||
}
|
||||
|
||||
public BiomeGenBasic(int id, int treesChunk, int grassChunk, int flowerChunk, int reedsChunk) {
|
||||
|
|
@ -17,9 +18,9 @@ public class BiomeGenBasic extends BiomeGenBase {
|
|||
this.theBiomeDecorator.reedsPerChunk = reedsChunk;
|
||||
}
|
||||
|
||||
public BiomeGenBasic(int id, int treesChunk, int grassChunk, int flowerChunk, int reedsChunk, int blockTop, int blockFiller) {
|
||||
public BiomeGenBasic(int id, int treesChunk, int grassChunk, int flowerChunk, int reedsChunk, Block blockTop, Block blockFiller) {
|
||||
this(id, treesChunk, grassChunk, flowerChunk, reedsChunk);
|
||||
this.topBlock = (byte) blockTop;
|
||||
this.fillerBlock = (byte) blockFiller;
|
||||
this.topBlock = blockTop;
|
||||
this.fillerBlock = blockFiller;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
package mysticworld.biome;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
|
||||
public class BiomeGenGlacier extends BiomeGenTundra {
|
||||
public BiomeGenGlacier(int id, int treesChunk, int grassChunk, int flowerChunk, int reedsChunk, int blockTop, int blockFiller) {
|
||||
public BiomeGenGlacier(int id, int treesChunk, int grassChunk, int flowerChunk, int reedsChunk, Block blockTop, Block blockFiller) {
|
||||
super(id, treesChunk, grassChunk, flowerChunk, reedsChunk, blockTop, blockFiller);
|
||||
this.waterColorMultiplier = 15397370;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,18 +1,20 @@
|
|||
package mysticworld.biome;
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
import net.minecraft.world.gen.feature.WorldGenAbstractTree;
|
||||
import net.minecraft.world.gen.feature.WorldGenHugeTrees;
|
||||
import net.minecraft.world.gen.feature.WorldGenMegaJungle;
|
||||
import net.minecraft.world.gen.feature.WorldGenTrees;
|
||||
import net.minecraft.world.gen.feature.WorldGenerator;
|
||||
|
||||
public class BiomeGenJungle extends net.minecraft.world.biome.BiomeGenJungle {
|
||||
public BiomeGenJungle(int par1) {
|
||||
super(par1);
|
||||
super(par1, false);
|
||||
}
|
||||
|
||||
@Override
|
||||
public WorldGenerator getRandomWorldGenForTrees(Random par1Random) {
|
||||
return par1Random.nextInt(10) == 0 ? this.worldGeneratorBigTree : (par1Random.nextInt(2) == 0 ? new WorldGenHugeTrees(false, 10 + par1Random.nextInt(20), 3, 3) : new WorldGenTrees(false,
|
||||
public WorldGenAbstractTree func_150567_a(Random par1Random) {
|
||||
return par1Random.nextInt(10) == 0 ? this.worldGeneratorBigTree : (par1Random.nextInt(2) == 0 ? new WorldGenMegaJungle(false, 10, 20, 3, 3) : new WorldGenTrees(false,
|
||||
4 + par1Random.nextInt(7), 3, 3, true));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
package mysticworld.biome;
|
||||
|
||||
import net.minecraft.world.biome.SpawnListEntry;
|
||||
import net.minecraft.block.Block;
|
||||
|
||||
public class BiomeGenTundra extends BiomeGenBasic {
|
||||
public BiomeGenTundra(int id, int treesChunk, int grassChunk, int flowerChunk, int reedsChunk, int blockTop, int blockFiller) {
|
||||
public BiomeGenTundra(int id, int treesChunk, int grassChunk, int flowerChunk, int reedsChunk, Block blockTop, Block blockFiller) {
|
||||
super(id, treesChunk, grassChunk, flowerChunk, reedsChunk, blockTop, blockFiller);
|
||||
this.spawnableCreatureList.clear();
|
||||
this.spawnableMonsterList.clear();
|
||||
|
|
|
|||
|
|
@ -1,10 +1,9 @@
|
|||
package mysticworld.biome;
|
||||
|
||||
import mysticworld.lib.Booleans;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.world.biome.BiomeGenBase;
|
||||
import net.minecraftforge.common.BiomeManager;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
|
||||
public class BiomeHandler {
|
||||
public static BiomeGenBase Mountain;
|
||||
|
|
@ -13,48 +12,33 @@ public class BiomeHandler {
|
|||
public static BiomeGenBase Glacier;
|
||||
public static BiomeGenBase Jungle;
|
||||
|
||||
public static void init() {
|
||||
initializeBiomes();
|
||||
registerBiomes();
|
||||
}
|
||||
|
||||
public static void initializeBiomes() {
|
||||
Mountain = new BiomeGenBasic(23, Block.stone.blockID, Block.stone.blockID).setColor(9286496).setBiomeName("Mountain").setEnableSnow().setTemperatureRainfall(0.05F, 0.8F)
|
||||
.setMinMaxHeight(0.5F, 1.0F);
|
||||
Tundra = new BiomeGenTundra(24, 0, 0, 0, 0, Block.blockSnow.blockID, Block.blockSnow.blockID).setColor(9286496).setBiomeName("Tundra").setEnableSnow().setTemperatureRainfall(0.05F, 0.8F)
|
||||
.setMinMaxHeight(0.8F, 0.4F);
|
||||
Steppe = new BiomeGenBasic(25, 0, 2, 2, 3, Block.grass.blockID, Block.dirt.blockID).setColor(5470985).setBiomeName("Steppe").setMinMaxHeight(0.1F, 0.1F);
|
||||
Glacier = new BiomeGenGlacier(26, 0, 0, 0, 0, Block.ice.blockID, Block.ice.blockID).setColor(9474208).setBiomeName("Glacier").setEnableSnow().setTemperatureRainfall(0.05F, 0.8F)
|
||||
.setMinMaxHeight(0.5F, 0.7F);
|
||||
Jungle = new BiomeGenJungle(27).setColor(5470985).setBiomeName("Jungle").func_76733_a(5470985).setTemperatureRainfall(1.2F, 0.9F).setMinMaxHeight(0.2F, 0.4F);
|
||||
}
|
||||
|
||||
public static void registerBiomes() {
|
||||
public static void init(){
|
||||
if (Booleans.ENABLE_JUNGLE_REWRITE) {
|
||||
GameRegistry.removeBiome(BiomeGenBase.jungle);
|
||||
GameRegistry.removeBiome(BiomeGenBase.jungleHills);
|
||||
GameRegistry.addBiome(Jungle);
|
||||
Jungle = new BiomeGenJungle(21).setColor(5470985).setBiomeName("Jungle").func_76733_a(5470985).setTemperatureRainfall(1.2F, 0.9F).setHeight(new BiomeGenBase.Height(0.2F, 0.4F));
|
||||
BiomeManager.addSpawnBiome(Jungle);
|
||||
BiomeManager.addStrongholdBiome(Jungle);
|
||||
}
|
||||
if (Booleans.ENABLE_GLACIER_GEN) {
|
||||
GameRegistry.addBiome(Glacier);
|
||||
BiomeManager.addStrongholdBiome(Glacier);
|
||||
}
|
||||
if (Booleans.ENABLE_MOUNTAIN_GEN) {
|
||||
GameRegistry.addBiome(Mountain);
|
||||
Mountain = new BiomeGenBasic(53, Blocks.stone, Blocks.stone).setColor(9286496).setBiomeName("Mountain").setEnableSnow().setTemperatureRainfall(0.05F, 0.8F)
|
||||
.setHeight(new BiomeGenBase.Height(0.5F, 1.0F));
|
||||
BiomeManager.addSpawnBiome(Mountain);
|
||||
BiomeManager.addStrongholdBiome(Mountain);
|
||||
}
|
||||
if (Booleans.ENABLE_TUNDRA_GEN) {
|
||||
GameRegistry.addBiome(Tundra);
|
||||
Tundra = new BiomeGenTundra(54, 0, 0, 0, 0, Blocks.snow, Blocks.snow).setColor(9286496).setBiomeName("Tundra").setEnableSnow().setTemperatureRainfall(0.05F, 0.8F)
|
||||
.setHeight(new BiomeGenBase.Height(0.8F, 0.4F));
|
||||
BiomeManager.addStrongholdBiome(Tundra);
|
||||
}
|
||||
if (Booleans.ENABLE_STEPPE_GEN) {
|
||||
GameRegistry.addBiome(Steppe);
|
||||
Steppe = new BiomeGenBasic(55, 0, 2, 2, 3, Blocks.grass, Blocks.dirt).setColor(5470985).setBiomeName("Steppe").setHeight(new BiomeGenBase.Height(0.1F, 0.1F));
|
||||
BiomeManager.addSpawnBiome(Steppe);
|
||||
BiomeManager.addVillageBiome(Steppe, true);
|
||||
BiomeManager.addStrongholdBiome(Steppe);
|
||||
}
|
||||
if (Booleans.ENABLE_GLACIER_GEN) {
|
||||
Glacier = new BiomeGenGlacier(56, 0, 0, 0, 0, Blocks.ice, Blocks.ice).setColor(9474208).setBiomeName("Glacier").setEnableSnow().setTemperatureRainfall(0.05F, 0.8F)
|
||||
.setHeight(new BiomeGenBase.Height(0.5F, 0.7F));
|
||||
BiomeManager.addStrongholdBiome(Glacier);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue