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


Java BiomeGenBase.SpawnListEntry方法代码示例

本文整理汇总了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);
}
 
开发者ID:SkidJava,项目名称:BaseClient,代码行数:20,代码来源:ChunkProviderGenerate.java

示例2: getSpawnList

import net.minecraft.world.biome.BiomeGenBase; //导入方法依赖的package包/类
public List<BiomeGenBase.SpawnListEntry> getSpawnList()
{
    return this.spawnList;
}
 
开发者ID:SkidJava,项目名称:BaseClient,代码行数:5,代码来源:MapGenNetherBridge.java

示例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;
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:6,代码来源:WorldServer.java

示例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);
}
 
开发者ID:SkidJava,项目名称:BaseClient,代码行数:5,代码来源:ChunkProviderEnd.java

示例5: getPossibleCreatures

import net.minecraft.world.biome.BiomeGenBase; //导入方法依赖的package包/类
public List<BiomeGenBase.SpawnListEntry> getPossibleCreatures(EnumCreatureType creatureType, BlockPos pos)
{
    return this.serverChunkGenerator.getPossibleCreatures(creatureType, pos);
}
 
开发者ID:SkidJava,项目名称:BaseClient,代码行数:5,代码来源:ChunkProviderServer.java

示例6: func_175799_b

import net.minecraft.world.biome.BiomeGenBase; //导入方法依赖的package包/类
public List<BiomeGenBase.SpawnListEntry> func_175799_b()
{
    return field_175803_h;
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:5,代码来源:StructureOceanMonument.java

示例7: getPossibleCreatures

import net.minecraft.world.biome.BiomeGenBase; //导入方法依赖的package包/类
public List<BiomeGenBase.SpawnListEntry> getPossibleCreatures(EnumCreatureType creatureType, BlockPos pos)
{
    return null;
}
 
开发者ID:SkidJava,项目名称:BaseClient,代码行数:5,代码来源:ChunkProviderClient.java

示例8: getScatteredFeatureSpawnList

import net.minecraft.world.biome.BiomeGenBase; //导入方法依赖的package包/类
public List<BiomeGenBase.SpawnListEntry> getScatteredFeatureSpawnList()
{
    return this.scatteredFeatureSpawnList;
}
 
开发者ID:SkidJava,项目名称:BaseClient,代码行数:5,代码来源:MapGenScatteredFeature.java

示例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;
}
 
开发者ID:SkidJava,项目名称:BaseClient,代码行数:6,代码来源:WorldServer.java

示例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);
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:6,代码来源:ChunkProviderFlat.java

示例11: getPossibleCreatures

import net.minecraft.world.biome.BiomeGenBase; //导入方法依赖的package包/类
List<BiomeGenBase.SpawnListEntry> getPossibleCreatures(EnumCreatureType creatureType, BlockPos pos); 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:2,代码来源:IChunkProvider.java


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