本文整理汇总了Java中net.minecraft.world.biome.BiomeGenBase.SpawnListEntry方法的典型用法代码示例。如果您正苦于以下问题:Java BiomeGenBase.SpawnListEntry方法的具体用法?Java BiomeGenBase.SpawnListEntry怎么用?Java BiomeGenBase.SpawnListEntry使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.minecraft.world.biome.BiomeGenBase
的用法示例。
在下文中一共展示了BiomeGenBase.SpawnListEntry方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: 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);
}
示例2: getSpawnList
import net.minecraft.world.biome.BiomeGenBase; //导入方法依赖的package包/类
public List<BiomeGenBase.SpawnListEntry> getSpawnList()
{
return this.spawnList;
}
示例3: canCreatureTypeSpawnHere
import net.minecraft.world.biome.BiomeGenBase; //导入方法依赖的package包/类
public boolean canCreatureTypeSpawnHere(EnumCreatureType creatureType, BiomeGenBase.SpawnListEntry spawnListEntry, BlockPos pos)
{
List<BiomeGenBase.SpawnListEntry> list = this.getChunkProvider().getPossibleCreatures(creatureType, pos);
return list != null && !list.isEmpty() ? list.contains(spawnListEntry) : false;
}
示例4: getPossibleCreatures
import net.minecraft.world.biome.BiomeGenBase; //导入方法依赖的package包/类
public List<BiomeGenBase.SpawnListEntry> getPossibleCreatures(EnumCreatureType creatureType, BlockPos pos)
{
return this.endWorld.getBiomeGenForCoords(pos).getSpawnableList(creatureType);
}
示例5: getPossibleCreatures
import net.minecraft.world.biome.BiomeGenBase; //导入方法依赖的package包/类
public List<BiomeGenBase.SpawnListEntry> getPossibleCreatures(EnumCreatureType creatureType, BlockPos pos)
{
return this.serverChunkGenerator.getPossibleCreatures(creatureType, pos);
}
示例6: func_175799_b
import net.minecraft.world.biome.BiomeGenBase; //导入方法依赖的package包/类
public List<BiomeGenBase.SpawnListEntry> func_175799_b()
{
return field_175803_h;
}
示例7: getPossibleCreatures
import net.minecraft.world.biome.BiomeGenBase; //导入方法依赖的package包/类
public List<BiomeGenBase.SpawnListEntry> getPossibleCreatures(EnumCreatureType creatureType, BlockPos pos)
{
return null;
}
示例8: getScatteredFeatureSpawnList
import net.minecraft.world.biome.BiomeGenBase; //导入方法依赖的package包/类
public List<BiomeGenBase.SpawnListEntry> getScatteredFeatureSpawnList()
{
return this.scatteredFeatureSpawnList;
}
示例9: getSpawnListEntryForTypeAt
import net.minecraft.world.biome.BiomeGenBase; //导入方法依赖的package包/类
public BiomeGenBase.SpawnListEntry getSpawnListEntryForTypeAt(EnumCreatureType creatureType, BlockPos pos)
{
List<BiomeGenBase.SpawnListEntry> list = this.getChunkProvider().getPossibleCreatures(creatureType, pos);
return list != null && !list.isEmpty() ? (BiomeGenBase.SpawnListEntry)WeightedRandom.getRandomItem(this.rand, list) : null;
}
示例10: 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);
}
示例11: getPossibleCreatures
import net.minecraft.world.biome.BiomeGenBase; //导入方法依赖的package包/类
List<BiomeGenBase.SpawnListEntry> getPossibleCreatures(EnumCreatureType creatureType, BlockPos pos);