本文整理汇总了Java中cpw.mods.fml.common.registry.EntityRegistry.removeSpawn方法的典型用法代码示例。如果您正苦于以下问题:Java EntityRegistry.removeSpawn方法的具体用法?Java EntityRegistry.removeSpawn怎么用?Java EntityRegistry.removeSpawn使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类cpw.mods.fml.common.registry.EntityRegistry
的用法示例。
在下文中一共展示了EntityRegistry.removeSpawn方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: serverStarting
import cpw.mods.fml.common.registry.EntityRegistry; //导入方法依赖的package包/类
@Mod.EventHandler
public void serverStarting(FMLServerStartingEvent e) {
EntityRegistry.removeSpawn("Butterfly", EnumCreatureType.ambient, new BiomeGenBase[] { BiomeGenBase.plains, BiomeGenBase.swampland, BiomeGenBase.jungle, BiomeGenBase.jungleHills, BiomeGenBase.jungleEdge, BiomeGenBase.savanna, BiomeGenBase.savannaPlateau });
EntityRegistry.removeSpawn("Cricket", EnumCreatureType.ambient, new BiomeGenBase[] { BiomeGenBase.plains, BiomeGenBase.swampland, BiomeGenBase.jungle, BiomeGenBase.jungleHills, BiomeGenBase.jungleEdge, BiomeGenBase.savanna, BiomeGenBase.savannaPlateau });
EntityRegistry.removeSpawn("Moth", EnumCreatureType.ambient, new BiomeGenBase[] { BiomeGenBase.forest, BiomeGenBase.forestHills, BiomeGenBase.swampland, BiomeGenBase.taiga, BiomeGenBase.taigaHills, BiomeGenBase.birchForest, BiomeGenBase.birchForestHills, BiomeGenBase.roofedForest, BiomeGenBase.megaTaiga, BiomeGenBase.megaTaigaHills });
}
示例2: removeSpawn
import cpw.mods.fml.common.registry.EntityRegistry; //导入方法依赖的package包/类
/**
* Remove a spawn
*
* @param entityClass
* @param spawnList
*/
@Deprecated
public static void removeSpawn(Class<? extends EntityLiving> entityClass, EnumCreatureType spawnList)
{
EntityRegistry.removeSpawn(entityClass, spawnList, WorldType.base12Biomes);
}