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


Java Biome.SpawnListEntry方法代码示例

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


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

示例1: getPossibleCreatures

import net.minecraft.world.biome.Biome; //导入方法依赖的package包/类
@Override
public List<Biome.SpawnListEntry> getPossibleCreatures(EnumCreatureType creatureType, BlockPos pos) {
	Biome biome = this.world.getBiome(pos);

	/*
	 * if (this.mapFeaturesEnabled) { if (creatureType ==
	 * EnumCreatureType.MONSTER &&
	 * this.scatteredFeatureGenerator.isSwampHut(pos)) { return
	 * this.scatteredFeatureGenerator.getScatteredFeatureSpawnList(); }
	 * 
	 * if (creatureType == EnumCreatureType.MONSTER &&
	 * this.settings.useMonuments &&
	 * this.oceanMonumentGenerator.isPositionInStructure(this.world, pos)) {
	 * return this.oceanMonumentGenerator.getScatteredFeatureSpawnList(); }
	 * }
	 */

	return biome.getSpawnableList(creatureType);
}
 
开发者ID:trigg,项目名称:Firma,代码行数:20,代码来源:FirmaChunkGen.java

示例2: getPossibleCreatures

import net.minecraft.world.biome.Biome; //导入方法依赖的package包/类
public List<Biome.SpawnListEntry> getPossibleCreatures(EnumCreatureType creatureType, BlockPos pos)
{
    if (creatureType == EnumCreatureType.MONSTER)
    {
        if (this.genNetherBridge.isInsideStructure(pos))
        {
            return this.genNetherBridge.getSpawnList();
        }

        if (this.genNetherBridge.isPositionInStructure(this.world, pos) && this.world.getBlockState(pos.down()).getBlock() == Blocks.NETHER_BRICK)
        {
            return this.genNetherBridge.getSpawnList();
        }
    }

    Biome biome = this.world.getBiome(pos);
    return biome.getSpawnableList(creatureType);
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:19,代码来源:ChunkProviderHell.java

示例3: getPossibleCreatures

import net.minecraft.world.biome.Biome; //导入方法依赖的package包/类
public List<Biome.SpawnListEntry> getPossibleCreatures(EnumCreatureType creatureType, BlockPos pos)
{
    Biome biome = this.worldObj.getBiome(pos);

    if (this.mapFeaturesEnabled)
    {
        if (creatureType == EnumCreatureType.MONSTER && this.scatteredFeatureGenerator.isSwampHut(pos))
        {
            return this.scatteredFeatureGenerator.getScatteredFeatureSpawnList();
        }

        if (creatureType == EnumCreatureType.MONSTER && this.settings.useMonuments && this.oceanMonumentGenerator.isPositionInStructure(this.worldObj, pos))
        {
            return this.oceanMonumentGenerator.getScatteredFeatureSpawnList();
        }
    }

    return biome.getSpawnableList(creatureType);
}
 
开发者ID:F1r3w477,项目名称:CustomWorldGen,代码行数:20,代码来源:ChunkProviderOverworld.java

示例4: getPotentialSpawns

import net.minecraft.world.biome.Biome; //导入方法依赖的package包/类
public static List<Biome.SpawnListEntry> getPotentialSpawns(WorldServer world, EnumCreatureType type, BlockPos pos, List<Biome.SpawnListEntry> oldList)
{
    WorldEvent.PotentialSpawns event = new WorldEvent.PotentialSpawns(world, type, pos, oldList);
    if (MinecraftForge.EVENT_BUS.post(event))
    {
        return null;
    }
    return event.getList();
}
 
开发者ID:F1r3w477,项目名称:CustomWorldGen,代码行数:10,代码来源:ForgeEventFactory.java

示例5: getPossibleCreatures

import net.minecraft.world.biome.Biome; //导入方法依赖的package包/类
public List<Biome.SpawnListEntry> getPossibleCreatures(EnumCreatureType creatureType, BlockPos pos)
{
    Biome biome = this.worldObj.getBiome(pos);
    return biome.getSpawnableList(creatureType);
}
 
开发者ID:F1r3w477,项目名称:CustomWorldGen,代码行数:6,代码来源:ChunkProviderFlat.java

示例6: getScatteredFeatureSpawnList

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

示例7: getPossibleCreatures

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

示例8: getSpawnEntries

import net.minecraft.world.biome.Biome; //导入方法依赖的package包/类
public List<Biome.SpawnListEntry> getSpawnEntries() {
    return spawnEntries;
}
 
开发者ID:McJty,项目名称:InControl,代码行数:4,代码来源:PotentialSpawnRule.java

示例9: getPossibleCreatures

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

示例10: getPossibleCreatures

import net.minecraft.world.biome.Biome; //导入方法依赖的package包/类
@Override
public List<Biome.SpawnListEntry> getPossibleCreatures(EnumCreatureType creatureType, BlockPos pos) {
    return Collections.emptyList();
}
 
开发者ID:Boethie,项目名称:Genesis,代码行数:5,代码来源:GenesisChunkGenerator.java

示例11: canCreatureTypeSpawnHere

import net.minecraft.world.biome.Biome; //导入方法依赖的package包/类
public boolean canCreatureTypeSpawnHere(EnumCreatureType creatureType, Biome.SpawnListEntry spawnListEntry, BlockPos pos)
{
    List<Biome.SpawnListEntry> list = this.getChunkProvider().getPossibleCreatures(creatureType, pos);
    list = net.minecraftforge.event.ForgeEventFactory.getPotentialSpawns(this, creatureType, pos, list);
    return list != null && !list.isEmpty() ? list.contains(spawnListEntry) : false;
}
 
开发者ID:F1r3w477,项目名称:CustomWorldGen,代码行数:7,代码来源:WorldServer.java

示例12: getSpawnListEntryForTypeAt

import net.minecraft.world.biome.Biome; //导入方法依赖的package包/类
@Nullable
public Biome.SpawnListEntry getSpawnListEntryForTypeAt(EnumCreatureType creatureType, BlockPos pos)
{
    List<Biome.SpawnListEntry> list = this.getChunkProvider().getPossibleCreatures(creatureType, pos);
    return list != null && !list.isEmpty() ? (Biome.SpawnListEntry)WeightedRandom.getRandomItem(this.rand, list) : null;
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:7,代码来源:WorldServer.java

示例13: getScatteredFeatureSpawnList

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

示例14: getPossibleCreatures

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

示例15: getSpawnList

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


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