コード例 #1
0
        protected BiomeGenBase(int i)
        {
            topBlock      = (byte)Blocks.Grass;
            fillerBlock   = (byte)Blocks.Dirt;
            field_6161_q  = 0x4ee031;
            minHeight     = 0.1F;
            maxHeight     = 0.3F;
            temperature   = 0.5F;
            rainfall      = 0.5F;
            field_40461_A = 0xffffff;
            //spawnableMonsterList = new ArrayList();
            //spawnableCreatureList = new ArrayList();
            //spawnableWaterCreatureList = new ArrayList();
            enableRain         = true;
            treeGenerator      = new WorldGenTrees(false);
            bigTreeGenerator   = new WorldGenBigTree(false);
            forestGenerator    = new WorldGenForest(false);
            swampTreeGenerator = new WorldGenSwamp();
            biomeID            = i;
            biomeList[i]       = this;
            decorator          = createBiomeDecorator();

            /*spawnableCreatureList.add(new SpawnListEntry(net.minecraft.src.EntitySheep.class, 12, 4, 4));
             * spawnableCreatureList.add(new SpawnListEntry(net.minecraft.src.EntityPig.class, 10, 4, 4));
             * spawnableCreatureList.add(new SpawnListEntry(net.minecraft.src.EntityChicken.class, 10, 4, 4));
             * spawnableCreatureList.add(new SpawnListEntry(net.minecraft.src.EntityCow.class, 8, 4, 4));
             * spawnableMonsterList.add(new SpawnListEntry(net.minecraft.src.EntitySpider.class, 10, 4, 4));
             * spawnableMonsterList.add(new SpawnListEntry(net.minecraft.src.EntityZombie.class, 10, 4, 4));
             * spawnableMonsterList.add(new SpawnListEntry(net.minecraft.src.EntitySkeleton.class, 10, 4, 4));
             * spawnableMonsterList.add(new SpawnListEntry(net.minecraft.src.EntityCreeper.class, 10, 4, 4));
             * spawnableMonsterList.add(new SpawnListEntry(net.minecraft.src.EntitySlime.class, 10, 4, 4));
             * spawnableMonsterList.add(new SpawnListEntry(net.minecraft.src.EntityEnderman.class, 2, 4, 4));
             * spawnableWaterCreatureList.add(new SpawnListEntry(net.minecraft.src.EntitySquid.class, 10, 4, 4));*/
        }
コード例 #2
0
ファイル: BiomeGenBase.cs プロジェクト: Nerketur/ForgeCraft
 protected BiomeGenBase(int i)
 {
     topBlock = (byte)Blocks.Grass;
     fillerBlock = (byte)Blocks.Dirt;
     field_6161_q = 0x4ee031;
     minHeight = 0.1F;
     maxHeight = 0.3F;
     temperature = 0.5F;
     rainfall = 0.5F;
     field_40461_A = 0xffffff;
     //spawnableMonsterList = new ArrayList();
     //spawnableCreatureList = new ArrayList();
     //spawnableWaterCreatureList = new ArrayList();
     enableRain = true;
     treeGenerator = new WorldGenTrees(false);
     bigTreeGenerator = new WorldGenBigTree(false);
     forestGenerator = new WorldGenForest(false);
     swampTreeGenerator = new WorldGenSwamp();
     biomeID = i;
     biomeList[i] = this;
     decorator = createBiomeDecorator();
     /*spawnableCreatureList.add(new SpawnListEntry(net.minecraft.src.EntitySheep.class, 12, 4, 4));
     spawnableCreatureList.add(new SpawnListEntry(net.minecraft.src.EntityPig.class, 10, 4, 4));
     spawnableCreatureList.add(new SpawnListEntry(net.minecraft.src.EntityChicken.class, 10, 4, 4));
     spawnableCreatureList.add(new SpawnListEntry(net.minecraft.src.EntityCow.class, 8, 4, 4));
     spawnableMonsterList.add(new SpawnListEntry(net.minecraft.src.EntitySpider.class, 10, 4, 4));
     spawnableMonsterList.add(new SpawnListEntry(net.minecraft.src.EntityZombie.class, 10, 4, 4));
     spawnableMonsterList.add(new SpawnListEntry(net.minecraft.src.EntitySkeleton.class, 10, 4, 4));
     spawnableMonsterList.add(new SpawnListEntry(net.minecraft.src.EntityCreeper.class, 10, 4, 4));
     spawnableMonsterList.add(new SpawnListEntry(net.minecraft.src.EntitySlime.class, 10, 4, 4));
     spawnableMonsterList.add(new SpawnListEntry(net.minecraft.src.EntityEnderman.class, 2, 4, 4));
     spawnableWaterCreatureList.add(new SpawnListEntry(net.minecraft.src.EntitySquid.class, 10, 4, 4));*/
 }