本文整理汇总了Java中net.minecraft.world.biome.BiomeGenBase.getSpawnableList方法的典型用法代码示例。如果您正苦于以下问题:Java BiomeGenBase.getSpawnableList方法的具体用法?Java BiomeGenBase.getSpawnableList怎么用?Java BiomeGenBase.getSpawnableList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.minecraft.world.biome.BiomeGenBase
的用法示例。
在下文中一共展示了BiomeGenBase.getSpawnableList方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getPossibleCreatures
import net.minecraft.world.biome.BiomeGenBase; //导入方法依赖的package包/类
public List<BiomeGenBase.SpawnListEntry> getPossibleCreatures(EnumCreatureType creatureType, BlockPos pos)
{
if (creatureType == EnumCreatureType.MONSTER)
{
if (this.genNetherBridge.func_175795_b(pos))
{
return this.genNetherBridge.getSpawnList();
}
if (this.genNetherBridge.func_175796_a(this.worldObj, pos) && this.worldObj.getBlockState(pos.down()).getBlock() == Blocks.nether_brick)
{
return this.genNetherBridge.getSpawnList();
}
}
BiomeGenBase biomegenbase = this.worldObj.getBiomeGenForCoords(pos);
return biomegenbase.getSpawnableList(creatureType);
}
示例2: getPossibleCreatures
import net.minecraft.world.biome.BiomeGenBase; //导入方法依赖的package包/类
public List<BiomeGenBase.SpawnListEntry> getPossibleCreatures(EnumCreatureType creatureType, BlockPos pos)
{
BiomeGenBase biomegenbase = this.worldObj.getBiomeGenForCoords(pos);
if (this.mapFeaturesEnabled)
{
if (creatureType == EnumCreatureType.MONSTER && this.scatteredFeatureGenerator.func_175798_a(pos))
{
return this.scatteredFeatureGenerator.getScatteredFeatureSpawnList();
}
if (creatureType == EnumCreatureType.MONSTER && this.settings.useMonuments && this.oceanMonumentGenerator.func_175796_a(this.worldObj, pos))
{
return this.oceanMonumentGenerator.func_175799_b();
}
}
return biomegenbase.getSpawnableList(creatureType);
}
示例3: getPossibleCreatures
import net.minecraft.world.biome.BiomeGenBase; //导入方法依赖的package包/类
public List<BiomeGenBase.SpawnListEntry> getPossibleCreatures(EnumCreatureType creatureType, BlockPos pos)
{
BiomeGenBase biomegenbase = this.worldObj.getBiomeGenForCoords(pos);
return biomegenbase.getSpawnableList(creatureType);
}
示例4: getPossibleCreatures
import net.minecraft.world.biome.BiomeGenBase; //导入方法依赖的package包/类
public List<BiomeGenBase.SpawnListEntry> getPossibleCreatures(EnumCreatureType creatureType, BlockPos pos)
{
BiomeGenBase biomegenbase = this.world.getBiomeGenForCoords(pos);
return biomegenbase.getSpawnableList(creatureType);
}
示例5: registerEntities
import net.minecraft.world.biome.BiomeGenBase; //导入方法依赖的package包/类
public void registerEntities() {
if (EtFuturum.enableBanners)
GameRegistry.registerTileEntity(TileEntityBanner.class, Utils.getUnlocalisedName("banner"));
if (EtFuturum.enableArmourStand)
ModEntityList.registerEntity(EntityArmourStand.class, "wooden_armorstand", 0, EtFuturum.instance, 64, 1, true);
if (EtFuturum.enableEndermite)
ModEntityList.registerEntity(EntityEndermite.class, "endermite", 1, EtFuturum.instance, 64, 1, true, 1447446, 7237230);
if (EtFuturum.enableChorusFruit)
GameRegistry.registerTileEntity(TileEntityEndRod.class, Utils.getUnlocalisedName("end_rod"));
if (EtFuturum.enableTippedArrows)
ModEntityList.registerEntity(EntityTippedArrow.class, "tipped_arrow", 2, EtFuturum.instance, 64, 20, true);
if (EtFuturum.enableBrewingStands)
GameRegistry.registerTileEntity(TileEntityNewBrewingStand.class, Utils.getUnlocalisedName("brewing_stand"));
if (EtFuturum.enableColourfulBeacons)
GameRegistry.registerTileEntity(TileEntityNewBeacon.class, Utils.getUnlocalisedName("beacon"));
if (EtFuturum.enableRabbit) {
ModEntityList.registerEntity(EntityRabbit.class, "rabbit", 3, EtFuturum.instance, 80, 3, true, 10051392, 7555121);
List<BiomeGenBase> biomes = new LinkedList<BiomeGenBase>();
label: for (BiomeGenBase biome : BiomeGenBase.getBiomeGenArray())
if (biome != null)
// Check if pigs can spawn on this biome
for (Object obj : biome.getSpawnableList(EnumCreatureType.creature))
if (obj instanceof SpawnListEntry) {
SpawnListEntry entry = (SpawnListEntry) obj;
if (entry.entityClass == EntityPig.class) {
biomes.add(biome);
continue label;
}
}
EntityRegistry.addSpawn(EntityRabbit.class, 10, 3, 3, EnumCreatureType.creature, biomes.toArray(new BiomeGenBase[biomes.size()]));
}
if (EtFuturum.enableLingeringPotions) {
ModEntityList.registerEntity(EntityLingeringPotion.class, "lingering_potion", 4, EtFuturum.instance, 64, 10, true);
ModEntityList.registerEntity(EntityLingeringEffect.class, "lingering_effect", 5, EtFuturum.instance, 64, 1, true);
}
if (EtFuturum.enableVillagerZombies)
ModEntityList.registerEntity(EntityZombieVillager.class, "villager_zombie", 6, EtFuturum.instance, 80, 3, true, 44975, 7969893);
if (EtFuturum.enableDragonRespawn) {
ModEntityList.registerEntity(EntityPlacedEndCrystal.class, "end_crystal", 7, EtFuturum.instance, 256, Integer.MAX_VALUE, false);
ModEntityList.registerEntity(EntityRespawnedDragon.class, "ender_dragon", 8, EtFuturum.instance, 160, 3, true);
}
if (EtFuturum.enableShearableGolems)
ModEntityList.registerEntity(EntityNewSnowGolem.class, "snow_golem", 9, EtFuturum.instance, 80, 3, true);
}