当前位置: 首页>>代码示例>>Java>>正文


Java SpawnListEntry类代码示例

本文整理汇总了Java中net.minecraft.world.biome.SpawnListEntry的典型用法代码示例。如果您正苦于以下问题:Java SpawnListEntry类的具体用法?Java SpawnListEntry怎么用?Java SpawnListEntry使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


SpawnListEntry类属于net.minecraft.world.biome包,在下文中一共展示了SpawnListEntry类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: SnowBiome

import net.minecraft.world.biome.SpawnListEntry; //导入依赖的package包/类
public SnowBiome(int par1){
	super(par1);
	this.topBlock = (byte) Block.blockSnow.blockID;
	this.fillerBlock = (byte) Block.blockSnow.blockID;
	
	this.setMinMaxHeight(0.3F, 0.6F);
	
	this.spawnableCreatureList.add(new SpawnListEntry(EntitySnowman.class, 25, 2, 6));
	this.spawnableCreatureList.clear();
	this.spawnableMonsterList.clear();
	this.spawnableMonsterList.add(new SpawnListEntry(EntityEskimoZombie.class, 15, 4, 4));
	this.spawnableMonsterList.add(new SpawnListEntry(EntityEskimoSkeleton.class, 15, 4, 4));
	this.spawnableMonsterList.add(new SpawnListEntry(EntityYeti.class, 10, 1, 1));
	
	
	this.theBiomeDecorator.treesPerChunk = 10;
	this.theBiomeDecorator.grassPerChunk = 4;
	
}
 
开发者ID:MinecraftModArchive,项目名称:Runes-And-Silver,代码行数:20,代码来源:SnowBiome.java

示例2: RuneBiome

import net.minecraft.world.biome.SpawnListEntry; //导入依赖的package包/类
public RuneBiome(int par1)
  {
  	
      super(par1);
      this.topBlock = (byte) Block.grass.blockID;
this.fillerBlock = (byte) Block.dirt.blockID;

this.setMinMaxHeight(0.1F, 1.1F);
this.spawnableCreatureList.add(new SpawnListEntry(EntityForestWalker.class, 5, 1, 1));

this.theBiomeDecorator.treesPerChunk = 10;
this.theBiomeDecorator.flowersPerChunk = 6;
this.theBiomeDecorator.grassPerChunk = 2;
this.theBiomeDecorator.bigMushroomsPerChunk = 1;
this.theBiomeDecorator.mushroomsPerChunk = 2;
      this.spawnableMonsterList.clear();
      this.spawnableCreatureList.clear();
      this.spawnableWaterCreatureList.clear();
      this.spawnableCaveCreatureList.clear();
    
  }
 
开发者ID:MinecraftModArchive,项目名称:Runes-And-Silver,代码行数:22,代码来源:RuneBiome.java

示例3: BiomeGenBlueNile

import net.minecraft.world.biome.SpawnListEntry; //导入依赖的package包/类
public BiomeGenBlueNile(int id) {
    super(id);
    //topBlock = (byte)ModBlocks.nileGrass.blockID;
    //fillerBlock = (byte)ModBlocks.nileDirt.blockID;
   	this.waterColorMultiplier = 0x003333;
   	this.theBiomeDecorator.treesPerChunk = 9;
   	this.theBiomeDecorator.grassPerChunk = 3;
   	this.theBiomeDecorator.flowersPerChunk = 2;
    this.theBiomeDecorator.generateLakes = true;
    this.spawnableMonsterList.clear();
    this.spawnableCreatureList.add(new SpawnListEntry(EntityZertum.class, 100, 4, 4));
    this.spawnableCreatureList.add(new SpawnListEntry(EntityBat.class, 5, 1, 5));
    this.spawnableCreatureList.add(new SpawnListEntry(EntityChicken.class, 5, 1, 5));
    this.spawnableCreatureList.add(new SpawnListEntry(EntityCow.class, 5, 1, 5));
    this.spawnableCreatureList.add(new SpawnListEntry(EntityPig.class, 5, 1, 5)); 
}
 
开发者ID:NovaViper,项目名称:ZeroQuest,代码行数:17,代码来源:BiomeGenBlueNile.java

示例4: BiomeGenDarkLand

import net.minecraft.world.biome.SpawnListEntry; //导入依赖的package包/类
public BiomeGenDarkLand(int id) {
    super(id);
    //topBlock = (byte)ModBlocks.nileGrass.blockID;
    //fillerBlock = (byte)ModBlocks.nileDirt.blockID;
   	this.waterColorMultiplier = 0x666600;
   	this.theBiomeDecorator.treesPerChunk = 1;
   	this.theBiomeDecorator.grassPerChunk = 1;
   	this.theBiomeDecorator.flowersPerChunk = -999;
    this.theBiomeDecorator.generateLakes = true;
    this.spawnableMonsterList.clear();
    this.spawnableCreatureList.add(new SpawnListEntry(EntityDarkZertum.class, 100, 4, 4));
    this.spawnableCreatureList.add(new SpawnListEntry(EntityBat.class, 5, 1, 5));
    this.spawnableCreatureList.add(new SpawnListEntry(EntityChicken.class, 5, 1, 5));
    this.spawnableCreatureList.add(new SpawnListEntry(EntityCow.class, 5, 1, 5));
    this.spawnableCreatureList.add(new SpawnListEntry(EntityPig.class, 5, 1, 5)); 
}
 
开发者ID:NovaViper,项目名称:ZeroQuest,代码行数:17,代码来源:BiomeGenDarkLand.java

示例5: BiomeCactusIsland

import net.minecraft.world.biome.SpawnListEntry; //导入依赖的package包/类
public BiomeCactusIsland(int id) {
	super(id);
	this.setBiomeName(Strings.NAMES_BIOME_CACTUS);
	this.setMinMaxHeight(0.2F, 0.5F);
	this.topBlock = (byte)Block.sand.blockID;
	this.fillerBlock = (byte)Block.sand.blockID;
	this.setTemperatureRainfall(2.0F, 0.0F);
	this.spawnableMonsterList.clear();
	this.spawnableCaveCreatureList.clear();
	this.spawnableCreatureList.clear();
	//this.spawnableCreatureList.add(new SpawnListEntry(EntityTomato.class, 100, 15, 15));
	this.spawnableCreatureList.add(new SpawnListEntry(EntityCactoid.class, 10, 2, 3));
	
	theBiomeDecorator = new FCraftBiomeDeco(this);
	customBiomeDecorator = (FCraftBiomeDeco)theBiomeDecorator;
	customBiomeDecorator.desertLiliesPerChunk = 3;
	customBiomeDecorator.treesPerChunk = -999;
}
 
开发者ID:Unrelentless,项目名称:FantasyCraft-Mod,代码行数:19,代码来源:BiomeCactusIsland.java

示例6: BiomeEvilForest

import net.minecraft.world.biome.SpawnListEntry; //导入依赖的package包/类
public BiomeEvilForest(int id) {
	super(id);
	this.setBiomeName(Strings.NAMES_BIOME_EVILFOREST);
	this.setMinMaxHeight(0.2F, 0.5F);
	this.topBlock = (byte)(byte)FCraftBlocks.petrifiedGrass.blockID;
	this.fillerBlock = (byte)FCraftBlocks.petrifiedDirt.blockID;
	this.setTemperatureRainfall(0.2F, 1.2F);

	this.spawnableCreatureList.add(new SpawnListEntry(EntityTomato.class, 10, 2, 3));
	this.spawnableCreatureList.add(new SpawnListEntry(EntityAlphaWolf.class, 10, 2, 3));
	//this.spawnableCreatureList.add(new SpawnListEntry(EntityCactoid.class, 100, 15, 15));		

	theBiomeDecorator = new FCraftBiomeDeco(this);
	customBiomeDecorator = (FCraftBiomeDeco) theBiomeDecorator;
	customBiomeDecorator.treesPerChunk = 10;
	customBiomeDecorator.heartillyPerChunk = 3;
	customBiomeDecorator.fcraftTreesPerChunk = 10;
}
 
开发者ID:Unrelentless,项目名称:FantasyCraft-Mod,代码行数:19,代码来源:BiomeEvilForest.java

示例7: BiomeSandsea

import net.minecraft.world.biome.SpawnListEntry; //导入依赖的package包/类
public BiomeSandsea(int id) {
	super(id);
	this.setBiomeName(Strings.NAMES_BIOME_SANDSEA);
	this.setMinMaxHeight(-0.1F, -0.1F);
	
	this.topBlock = (byte)FCraftBlocks.blockSandseaFluid.blockID;
	this.fillerBlock = (byte)FCraftBlocks.blockSandseaFluid.blockID;
	this.setTemperatureRainfall(2F, 0F);
	this.spawnableMonsterList.clear();
	this.spawnableCaveCreatureList.clear();
	this.spawnableCreatureList.clear();

	//this.spawnableCreatureList.add(new SpawnListEntry(EntityTomato.class, 10, 15, 15));
	this.spawnableCreatureList.add(new SpawnListEntry(EntityCactoid.class, 10, 2, 3));
	this.spawnableCreatureList.add(new SpawnListEntry(EntityAlphaWolf.class, 10, 2, 3));
	
	theBiomeDecorator = new FCraftBiomeDeco(this);
	customBiomeDecorator = (FCraftBiomeDeco)theBiomeDecorator;
	customBiomeDecorator.brahnePerChunk = 3;
	customBiomeDecorator.treesPerChunk = -999;
}
 
开发者ID:Unrelentless,项目名称:FantasyCraft-Mod,代码行数:22,代码来源:BiomeSandsea.java

示例8: BiomeCalmLands

import net.minecraft.world.biome.SpawnListEntry; //导入依赖的package包/类
public BiomeCalmLands(int id) {
	super(id);
	this.setBiomeName(Strings.NAMES_BIOME_CALMLANDS);
	this.setMinMaxHeight(0.2F, 0.5F);
	this.topBlock = (byte)Block.grass.blockID;
	this.fillerBlock = (byte)Block.dirt.blockID;
	this.setTemperatureRainfall(2.0F, 0.2F);

	this.spawnableCreatureList.add(new SpawnListEntry(EntityTomato.class, 10, 2, 3));
	//this.spawnableCreatureList.add(new SpawnListEntry(EntityCactoid.class, 100, 15, 15));

	theBiomeDecorator = new FCraftBiomeDeco(this);
	customBiomeDecorator = (FCraftBiomeDeco)theBiomeDecorator;

	customBiomeDecorator.aerithPerChunk = 3;
	customBiomeDecorator.brahnePerChunk = 3;
	customBiomeDecorator.celesPerChunk = 3;
	customBiomeDecorator.freyaPerChunk = 3;
	customBiomeDecorator.heartillyPerChunk = 3;
	customBiomeDecorator.loirePerChunk = 3;
	customBiomeDecorator.oveliaPerChunk = 3;
	customBiomeDecorator.yunaPerChunk = 3;	
	customBiomeDecorator.treesPerChunk = -999;

}
 
开发者ID:Unrelentless,项目名称:FantasyCraft-Mod,代码行数:26,代码来源:BiomeCalmLands.java

示例9: BiomeThunderPlains

import net.minecraft.world.biome.SpawnListEntry; //导入依赖的package包/类
public BiomeThunderPlains(int id) {
	super(id);
	this.setBiomeName(Strings.NAMES_BIOME_THUNDERPLAINS);
	this.setMinMaxHeight(0.2F, 0.3F);
	this.topBlock = (byte)FCraftBlocks.thunderPlainsDirt.blockID;
	this.fillerBlock = (byte)Block.dirt.blockID;
	this.setTemperatureRainfall(1.9F, 1.0F);

	this.spawnableCreatureList.add(new SpawnListEntry(EntityTomato.class, 10, 2, 3));
	this.spawnableCreatureList.add(new SpawnListEntry(EntityAlphaWolf.class, 10, 2, 3));
	
	theBiomeDecorator = new FCraftBiomeDeco(this);
	customBiomeDecorator = (FCraftBiomeDeco)theBiomeDecorator;
	customBiomeDecorator.farronPerChunk = 3;
	customBiomeDecorator.treesPerChunk = -999;
}
 
开发者ID:Unrelentless,项目名称:FantasyCraft-Mod,代码行数:17,代码来源:BiomeThunderPlains.java

示例10: BiomeHighwaste

import net.minecraft.world.biome.SpawnListEntry; //导入依赖的package包/类
public BiomeHighwaste(int id) {
	super(id);
	this.setBiomeName(Strings.NAMES_BIOME_HIGHWASTE);
	this.setMinMaxHeight(0.2F, 1.2F);
	this.topBlock = (byte)FCraftBlocks.highwasteDirt.blockID;
	this.fillerBlock = (byte)FCraftBlocks.highwasteGrass.blockID;
	this.setTemperatureRainfall(1.0F, 1.0F);

	this.spawnableCreatureList.add(new SpawnListEntry(EntityTomato.class, 10, 2, 3));
	this.spawnableCreatureList.add(new SpawnListEntry(EntityCactoid.class, 10, 2, 3));
	this.spawnableCreatureList.add(new SpawnListEntry(EntityAlphaWolf.class, 10, 2, 3));
	
	
	theBiomeDecorator = new FCraftBiomeDeco(this);
	customBiomeDecorator = (FCraftBiomeDeco)theBiomeDecorator;
	customBiomeDecorator.freyaPerChunk = 3;
	customBiomeDecorator.treesPerChunk = 1;

}
 
开发者ID:Unrelentless,项目名称:FantasyCraft-Mod,代码行数:20,代码来源:BiomeHighwaste.java

示例11: BiomeGolmoreJungle

import net.minecraft.world.biome.SpawnListEntry; //导入依赖的package包/类
public BiomeGolmoreJungle(int id) {
	super(id);
	this.setBiomeName(Strings.NAMES_BIOME_GOLMORE);
	this.setMinMaxHeight(0.2F, 0.5F);
	this.topBlock = (byte)FCraftBlocks.jungleMud.blockID;
	this.fillerBlock = (byte)Block.dirt.blockID;
	this.setTemperatureRainfall(1.0F, 1.0F);

	this.spawnableCreatureList.add(new SpawnListEntry(EntityTomato.class, 10, 2, 3));
	//this.spawnableCreatureList.add(new SpawnListEntry(EntityCactoid.class, 100, 15, 15));
	
	
	theBiomeDecorator = new FCraftBiomeDeco(this);
	customBiomeDecorator = (FCraftBiomeDeco)theBiomeDecorator;
	customBiomeDecorator.celesPerChunk = 3;
	customBiomeDecorator.treesPerChunk = 20;
}
 
开发者ID:Unrelentless,项目名称:FantasyCraft-Mod,代码行数:18,代码来源:BiomeGolmoreJungle.java

示例12: addSpawn

import net.minecraft.world.biome.SpawnListEntry; //导入依赖的package包/类
public static void addSpawn(Class <? extends EntityLiving > entityClass, int weightedProb, int min, int max, EnumCreatureType typeOfCreature, BiomeGenBase... biomes)
{
    for (BiomeGenBase biome : biomes)
    {
        @SuppressWarnings("unchecked")
        List<SpawnListEntry> spawns = biome.func_76747_a(typeOfCreature);

        for (SpawnListEntry entry : spawns)
        {
            //Adjusting an existing spawn entry
            if (entry.field_76300_b == entityClass)
            {
                entry.field_76292_a = weightedProb;
                entry.field_76301_c = min;
                entry.field_76299_d = max;
                break;
            }
        }

        spawns.add(new SpawnListEntry(entityClass, weightedProb, min, max));
    }
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:23,代码来源:EntityRegistry.java

示例13: removeSpawn

import net.minecraft.world.biome.SpawnListEntry; //导入依赖的package包/类
public static void removeSpawn(Class <? extends EntityLiving > entityClass, EnumCreatureType typeOfCreature, BiomeGenBase... biomes)
{
    for (BiomeGenBase biome : biomes)
    {
        @SuppressWarnings("unchecked")
        Iterator<SpawnListEntry> spawns = biome.func_76747_a(typeOfCreature).iterator();

        while (spawns.hasNext())
        {
            SpawnListEntry entry = spawns.next();
            if (entry.field_76300_b == entityClass)
            {
                spawns.remove();
            }
        }
    }
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:18,代码来源:EntityRegistry.java

示例14: addSpawn

import net.minecraft.world.biome.SpawnListEntry; //导入依赖的package包/类
public static void addSpawn(Class <? extends EntityLiving > entityClass, int weightedProb, int min, int max, EnumCreatureType typeOfCreature, BiomeGenBase... biomes)
{
    for (BiomeGenBase biome : biomes)
    {
        @SuppressWarnings("unchecked")
        List<SpawnListEntry> spawns = biome.getSpawnableList(typeOfCreature);

        for (SpawnListEntry entry : spawns)
        {
            //Adjusting an existing spawn entry
            if (entry.entityClass == entityClass)
            {
                entry.itemWeight = weightedProb;
                entry.minGroupCount = min;
                entry.maxGroupCount = max;
                break;
            }
        }

        spawns.add(new SpawnListEntry(entityClass, weightedProb, min, max));
    }
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:23,代码来源:EntityRegistry.java

示例15: removeSpawn

import net.minecraft.world.biome.SpawnListEntry; //导入依赖的package包/类
public static void removeSpawn(Class <? extends EntityLiving > entityClass, EnumCreatureType typeOfCreature, BiomeGenBase... biomes)
{
    for (BiomeGenBase biome : biomes)
    {
        @SuppressWarnings("unchecked")
        Iterator<SpawnListEntry> spawns = biome.getSpawnableList(typeOfCreature).iterator();

        while (spawns.hasNext())
        {
            SpawnListEntry entry = spawns.next();
            if (entry.entityClass == entityClass)
            {
                spawns.remove();
            }
        }
    }
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:18,代码来源:EntityRegistry.java


注:本文中的net.minecraft.world.biome.SpawnListEntry类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。