本文整理汇总了Java中net.minecraftforge.common.BiomeManager.addSpawnBiome方法的典型用法代码示例。如果您正苦于以下问题:Java BiomeManager.addSpawnBiome方法的具体用法?Java BiomeManager.addSpawnBiome怎么用?Java BiomeManager.addSpawnBiome使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.minecraftforge.common.BiomeManager
的用法示例。
在下文中一共展示了BiomeManager.addSpawnBiome方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: init
import net.minecraftforge.common.BiomeManager; //导入方法依赖的package包/类
@CustomRegistry
public static void init() {
Biome.BiomeProperties properties = new Biome.BiomeProperties("Rubber Plantation");
properties.setTemperature(0.95F);
properties.setRainfall(0.95F);
properties.setBaseHeight(0.45F);
properties.setHeightVariation(0.4F);
rubberPlantationBiome = new RubberPlantationBiome(properties);
rubberPlantationBiome.setRegistryName(new ResourceLocation(TRConstants.MOD_ID, "rubberPlantation"));
GameRegistry.register(rubberPlantationBiome);
BiomeManager.addBiome(BiomeManager.BiomeType.WARM, new BiomeManager.BiomeEntry(rubberPlantationBiome, 20));
BiomeManager.addSpawnBiome(rubberPlantationBiome);
BiomeProvider.allowedBiomes.add(rubberPlantationBiome);
}
示例2: init
import net.minecraftforge.common.BiomeManager; //导入方法依赖的package包/类
public static void init() {
dark_ocean = (new BiomeDarkOcean(51)).setBiomeName("Dark Ocean");
dark_land = (new BiomeDeadLand(52, 0)).setColor(9286496).setBiomeName("Dark Land");
BiomeManager.addSpawnBiome(dark_land);
dark_forest = (new BiomeDarkForest(53, 0)).setColor(9286496).setBiomeName("Dark Forest");
BiomeManager.addSpawnBiome(dark_forest);
dark_hills = (new BiomeDarkHills(54, 0)).setColor(6316128).setBiomeName("Dark Extreme Hills");
BiomeManager.addSpawnBiome(dark_hills);
dead_land = (new BiomeDeadLand(55, 0)).setColor(6316124).setBiomeName("Dead Land").setHeight(height_BigHills);;
BiomeManager.addSpawnBiome(dead_land);
dark_roofed_forest = (new BiomeDarkForest(56, 1)).setColor(4215066).setBiomeName("Dark Roofed Forest");
BiomeManager.addSpawnBiome(dark_roofed_forest);
dark_jungle = (new BiomeDarkJungle(57, 1)).setColor(6316129).setBiomeName("Dark Jungle");
BiomeManager.addSpawnBiome(dark_jungle);
magical_forest = (new BiomeDarkForest(58, 2)).setColor(1234567).setBiomeName("Magical Forest");
BiomeManager.addSpawnBiome(magical_forest);
ancient_land = (new BiomeAncientLand(59, 2)).setColor(1111111).setBiomeName("Ancient Land");
BiomeManager.addSpawnBiome(ancient_land);
misty_mountains = (new BiomeDarkHills(60, 1)).setColor(999999).setBiomeName("Misty Mountains").setHeight(height_BigHills);
BiomeManager.addSpawnBiome(misty_mountains);
big_crater = (new BiomeDarkHills(61, 1)).setColor(999899).setBiomeName("Big_Crater").setHeight(height_Crater);
BiomeManager.addSpawnBiome(big_crater);
}
示例3: main
import net.minecraftforge.common.BiomeManager; //导入方法依赖的package包/类
public void main() {
//Ores
GameRegistry.registerWorldGenerator(new WorldGenDerpyOres(), 42);
//Biome
BiomeGenBase magicBiome = new MagicBiomeGen(Main.idMagicBiome);
BiomeDictionary.registerBiomeType(magicBiome, BiomeDictionary.Type.MAGICAL);
BiomeManager.addBiome(BiomeType.COOL, new BiomeEntry(magicBiome, 10));
BiomeManager.addSpawnBiome(magicBiome);
//Trees
GameRegistry.registerWorldGenerator(new DerpyTreeGen(new WorldGenMagicTree(false),magicBiome,9,1),42);
GameRegistry.registerWorldGenerator(new DerpyTreeGen(new WorldGenEbonyTree(false),magicBiome,10,1),42);
BiomeGenBase[] forests = BiomeDictionary.getBiomesForType(Type.FOREST);
for (int i=0;i<forests.length;i++) {
BiomeGenBase b = forests[i];
GameRegistry.registerWorldGenerator(new DerpyTreeGen(new WorldGenEbonyTree(false),b,2,3),1);
}
}
示例4: init
import net.minecraftforge.common.BiomeManager; //导入方法依赖的package包/类
public static void init(){
float height = ((float)68 - 65.0F) / 17.0F;
float heightVar = Math.abs((((float)10 - 7.0F) / (20.0F * 4.0F) + ((float)5 - 4.0F) / 20.0F) / 2.0F);
Biome.BiomeProperties bambooProperties = new Biome.BiomeProperties("Bamboo Forest").setBaseHeight(height).setHeightVariation(heightVar).setTemperature(0.8F).setRainfall(0.4F);
BAMBOO_FOREST = (BiomeBambooForest) new BiomeBambooForest(bambooProperties).setRegistryName(CrystalMod.resourceL("bambooforest"));
GameRegistry.register(BAMBOO_FOREST);
BiomeManager.addBiome(BiomeType.WARM, new BiomeEntry(BAMBOO_FOREST, 10));
BiomeDictionary.addTypes(BAMBOO_FOREST, BiomeDictionary.Type.FOREST, BiomeDictionary.Type.WET);
BiomeManager.addSpawnBiome(BAMBOO_FOREST);
ModLogger.info("Added "+BAMBOO_FOREST.getBiomeName()+" id = "+Biome.getIdForBiome(BAMBOO_FOREST));
}
示例5: registerBiomes
import net.minecraftforge.common.BiomeManager; //导入方法依赖的package包/类
private static void registerBiomes(BiomeGenBase biome, BiomeType type, Type forgeType, int id, boolean canSpawnIn)
{
BiomeDictionary.registerBiomeType(biome, forgeType);
BiomeManager.addBiome(type, new BiomeEntry(biome, id));
if (canSpawnIn)
{
BiomeManager.addSpawnBiome(biome);
}
}
示例6: BiomeGenBotania
import net.minecraftforge.common.BiomeManager; //导入方法依赖的package包/类
public BiomeGenBotania(int id){
super(id);
this.theBiomeDecorator.treesPerChunk = 1;
this.theBiomeDecorator.grassPerChunk = 2;
this.theBiomeDecorator.mushroomsPerChunk = 0;
setHeight(height_MidPlains);
this.spawnableCreatureList.add(new BiomeGenBase.SpawnListEntry(EntityUnicorn.class, 8, 4, 4));
if(Compat.botania)
BiomeManager.addBiome(BiomeManager.BiomeType.WARM, new BiomeManager.BiomeEntry(this, Config.botaniaWeight));
BiomeManager.addSpawnBiome(this);
BiomeDictionary.registerBiomeType(this, BiomeDictionary.Type.MAGICAL, BiomeDictionary.Type.PLAINS, BiomeDictionary.Type.LUSH);
setBiomeName("Botanical Garden");
setColor(0xFF70F7);
}
示例7: BiomeGenTime
import net.minecraftforge.common.BiomeManager; //导入方法依赖的package包/类
public BiomeGenTime(int id)
{
super(id);
/*this.spawnableCreatureList.clear();
this.theBiomeDecorator.treesPerChunk = 10;
this.theBiomeDecorator.grassPerChunk = 2;
this.theBiomeDecorator.mushroomsPerChunk = 1;
this.spawnableCreatureList.clear();
this.spawnableCreatureList.add(new SpawnListEntry(EntityWolf.class, 10, 4, 4));
this.spawnableMonsterList.add(new SpawnListEntry(EntityWitch.class, 10, 4, 4));
this.spawnableMonsterList.add(new SpawnListEntry(EntityFrankenstein.class, 90, 4, 4));*/
this.spawnableMonsterList.clear();
this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntitySpider.class, 100, 4, 4));
this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntityZombie.class, 100, 4, 4));
this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntitySkeleton.class, 100, 4, 4));
this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntityCreeper.class, 100, 4, 4));
this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntitySlime.class, 100, 4, 4));
this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntityOldEnderman.class, 10, 1, 4));
this.setHeight(height_LowPlains);
this.theBiomeDecorator.treesPerChunk = -999;
this.theBiomeDecorator.flowersPerChunk = -1;
this.theBiomeDecorator.grassPerChunk = 5;
this.flowers.clear();
this.flowers.add(new FlowerEntry(Blocks.yellow_flower, 0, 10));
this.flowers.add(new FlowerEntry(RidiculousBlocks.flower, 0, 10));
this.flowers.add(new FlowerEntry(RidiculousBlocks.flower, 1, 1));
this.flowers.add(new FlowerEntry(RidiculousBlocks.flower, 2, 1));
BiomeManager.addSpawnBiome(this);
BiomeManager.addBiome(BiomeManager.BiomeType.COOL, new BiomeEntry(this, Config.timeWeight));
BiomeManager.addBiome(BiomeManager.BiomeType.WARM, new BiomeEntry(this, Config.timeWeight));
//BiomeManager.addStrongholdBiome(this);
BiomeDictionary.registerBiomeType(this, Type.PLAINS, Type.MAGICAL);
setBiomeName("Timeslip Fields");
setTemperatureRainfall(0.25F, 0.5F);
setColor(0x7FBBFF);
//this.waterColorMultiplier = 0x970E0E;
}
示例8: preInit
import net.minecraftforge.common.BiomeManager; //导入方法依赖的package包/类
@EventHandler
public void preInit(FMLPreInitializationEvent event)
{
SMMConfigManager.init(new File(event.getModConfigurationDirectory().getAbsolutePath() + File.separator + "SMM.cfg"));
SMMBlocks.initBlocks();
SMMItems.initItems();
SMMArmor.initArmor();
SMMTools.initTools();
GameRegistry.registerWorldGenerator(new SMMGenerationManager(), 0);
BiomeManager.warmBiomes.add(new BiomeEntry(mgForest, ConfigFields.madagascarianForestRarity));
BiomeManager.addSpawnBiome(mgForest);
}
示例9: RegisterBiomes
import net.minecraftforge.common.BiomeManager; //导入方法依赖的package包/类
public static void RegisterBiomes(){
if((Boolean) Core.Config.getProperties().get("LavaGeneration")){
biomelava = new BiomeGenLava(3).setBiomeName("Lava").setTemperatureRainfall(1.2F, 0.9F);
BiomeDictionary.registerBiomeType(biomelava, Type.FOREST);
BiomeManager.addSpawnBiome(biomelava);
}
}
示例10: registerBiome
import net.minecraftforge.common.BiomeManager; //导入方法依赖的package包/类
public static void registerBiome() {
BiomeDictionary.registerBiomeType(biomeGenGreatOakForest, Type.FOREST);
BiomeDictionary.registerBiomeType(biomeGenDeadForest, Type.FOREST);
BiomeDictionary.registerBiomeType(biomeGenFirForest, Type.FOREST);
BiomeDictionary.registerBiomeType(biomeGenMapleForest, Type.FOREST);
BiomeDictionary.registerBiomeType(biomeGenRedwoodForest, Type.FOREST);
BiomeManager.addSpawnBiome(biomeGenGreatOakForest);
BiomeManager.addSpawnBiome(biomeGenDeadForest);
BiomeManager.addSpawnBiome(biomeGenFirForest);
BiomeManager.addSpawnBiome(biomeGenMapleForest);
BiomeManager.addSpawnBiome(biomeGenRedwoodForest);
}
示例11: registerBiomes
import net.minecraftforge.common.BiomeManager; //导入方法依赖的package包/类
public static void registerBiomes() {
if (Booleans.ENABLE_JUNGLE_REWRITE) {
GameRegistry.removeBiome(BiomeGenBase.jungle);
GameRegistry.removeBiome(BiomeGenBase.jungleHills);
GameRegistry.addBiome(Jungle);
BiomeManager.addSpawnBiome(Jungle);
BiomeManager.addStrongholdBiome(Jungle);
}
if (Booleans.ENABLE_GLACIER_GEN) {
GameRegistry.addBiome(Glacier);
BiomeManager.addStrongholdBiome(Glacier);
}
if (Booleans.ENABLE_MOUNTAIN_GEN) {
GameRegistry.addBiome(Mountain);
BiomeManager.addSpawnBiome(Mountain);
BiomeManager.addStrongholdBiome(Mountain);
}
if (Booleans.ENABLE_TUNDRA_GEN) {
GameRegistry.addBiome(Tundra);
BiomeManager.addStrongholdBiome(Tundra);
}
if (Booleans.ENABLE_STEPPE_GEN) {
GameRegistry.addBiome(Steppe);
BiomeManager.addSpawnBiome(Steppe);
BiomeManager.addVillageBiome(Steppe, true);
BiomeManager.addStrongholdBiome(Steppe);
}
}
示例12: registerBiome
import net.minecraftforge.common.BiomeManager; //导入方法依赖的package包/类
public static void registerBiome(){
BiomeDictionary.registerBiomeType(biomePat, Type.FOREST);
BiomeDictionary.registerBiomeType(biomeJen, Type.FOREST);
BiomeManager.addSpawnBiome(biomePat);
BiomeManager.addSpawnBiome(biomeJen);
}
示例13: registerBiomes
import net.minecraftforge.common.BiomeManager; //导入方法依赖的package包/类
private static void registerBiomes()
{
biomeWasteland = new BiomeWasteland(100).setBiomeName("Wasteland");
BiomeDictionary.registerBiomeType(biomeWasteland, BiomeDictionary.Type.DEAD);
BiomeManager.addBiome(BiomeManager.BiomeType.WARM, new BiomeManager.BiomeEntry(biomeWasteland,1000));
BiomeManager.removeSpawnBiome(BiomeGenBase.beach);
BiomeManager.removeSpawnBiome(BiomeGenBase.birchForest);
BiomeManager.removeSpawnBiome(BiomeGenBase.birchForestHills);
BiomeManager.removeSpawnBiome(BiomeGenBase.coldBeach);
BiomeManager.removeSpawnBiome(BiomeGenBase.coldTaiga);
BiomeManager.removeSpawnBiome(BiomeGenBase.coldTaigaHills);
BiomeManager.removeSpawnBiome(BiomeGenBase.deepOcean);
BiomeManager.removeSpawnBiome(BiomeGenBase.desert);
BiomeManager.removeSpawnBiome(BiomeGenBase.desertHills);
BiomeManager.removeSpawnBiome(BiomeGenBase.extremeHills);
BiomeManager.removeSpawnBiome(BiomeGenBase.extremeHillsEdge);
BiomeManager.removeSpawnBiome(BiomeGenBase.extremeHillsPlus);
BiomeManager.removeSpawnBiome(BiomeGenBase.forest);
BiomeManager.removeSpawnBiome(BiomeGenBase.forestHills);
BiomeManager.removeSpawnBiome(BiomeGenBase.frozenOcean);
BiomeManager.removeSpawnBiome(BiomeGenBase.frozenRiver);
BiomeManager.removeSpawnBiome(BiomeGenBase.hell);
BiomeManager.removeSpawnBiome(BiomeGenBase.iceMountains);
BiomeManager.removeSpawnBiome(BiomeGenBase.icePlains);
BiomeManager.removeSpawnBiome(BiomeGenBase.jungle);
BiomeManager.removeSpawnBiome(BiomeGenBase.jungleEdge);
BiomeManager.removeSpawnBiome(BiomeGenBase.jungleHills);
BiomeManager.removeSpawnBiome(BiomeGenBase.megaTaiga);
BiomeManager.removeSpawnBiome(BiomeGenBase.megaTaigaHills);
BiomeManager.removeSpawnBiome(BiomeGenBase.mesa);
BiomeManager.removeSpawnBiome(BiomeGenBase.mesaPlateau);
BiomeManager.removeSpawnBiome(BiomeGenBase.mesaPlateau_F);
BiomeManager.removeSpawnBiome(BiomeGenBase.mushroomIsland);
BiomeManager.removeSpawnBiome(BiomeGenBase.mushroomIslandShore);
BiomeManager.removeSpawnBiome(BiomeGenBase.ocean);
BiomeManager.removeSpawnBiome(BiomeGenBase.plains);
BiomeManager.removeSpawnBiome(BiomeGenBase.river);
BiomeManager.removeSpawnBiome(BiomeGenBase.roofedForest);
BiomeManager.removeSpawnBiome(BiomeGenBase.savanna);
BiomeManager.removeSpawnBiome(BiomeGenBase.savannaPlateau);
BiomeManager.removeSpawnBiome(BiomeGenBase.sky);
BiomeManager.removeSpawnBiome(BiomeGenBase.stoneBeach);
BiomeManager.removeSpawnBiome(BiomeGenBase.swampland);
BiomeManager.removeSpawnBiome(BiomeGenBase.taiga);
BiomeManager.removeSpawnBiome(BiomeGenBase.taigaHills);
BiomeManager.addSpawnBiome(biomeWasteland);
}
示例14: init
import net.minecraftforge.common.BiomeManager; //导入方法依赖的package包/类
public static void init()
{
BiomeManager.coolBiomes.add(new BiomeManager.BiomeEntry(biomeMagical, 100));
BiomeManager.addSpawnBiome(biomeMagical);
}
示例15: loadBiomes
import net.minecraftforge.common.BiomeManager; //导入方法依赖的package包/类
public static void loadBiomes() {
//Put biomes in GenLayerBiomesZeroQuest/WorldChunkManager//
bioZone = new BiomeGenBioZone(110).setBiomeName("Bio Zone").setHeight(height_MidHills).setTemperatureRainfall(0.8F, 0.4F);
redSeed = new BiomeGenRedSeed(111).setBiomeName("Red Seed").setHeight(height_LowPlains).setTemperatureRainfall(0.8F, 0.4F);
blueTaiga = new BiomeGenBlueTaiga(112, 0).setBiomeName("Blue Taiga").func_76733_a(5159473).setTemperatureRainfall(0.25F, 0.8F).setHeight(height_MidPlains);
blueTaigaHills = new BiomeGenBlueTaiga(113, 0).setBiomeName("Blue Taiga Hills").func_76733_a(5159473).setTemperatureRainfall(0.25F, 0.8F).setHeight(height_LowHills);
blueColdTaiga = new BiomeGenBlueTaiga(114, 0).setBiomeName("Cold Blue Taiga").func_76733_a(5159473).setEnableSnow().setTemperatureRainfall(-0.5F, 0.4F).setHeight(height_MidPlains).func_150563_c(16777215);
blueColdTaigaHills = new BiomeGenBlueTaiga(115, 0).setBiomeName("Cold Blue Taiga Hills").func_76733_a(5159473).setEnableSnow().setTemperatureRainfall(-0.5F, 0.4F).setHeight(height_LowHills).func_150563_c(16777215);
blueMegaTaiga = new BiomeGenBlueTaiga(116, 1).setBiomeName("Mega Blue Taiga").func_76733_a(5159473).setTemperatureRainfall(0.3F, 0.8F).setHeight(height_MidPlains);
blueMegaTaigaHills = new BiomeGenBlueTaiga(117, 1).setBiomeName("Mega Blue Taiga Hills").func_76733_a(5159473).setTemperatureRainfall(0.3F, 0.8F).setHeight(height_LowHills);
pinkZone = new BiomeGenPinkZone(118).setBiomeName("Pink Zone").setHeight(height_HighDefault2).setTemperatureRainfall(0.8F, 0.4F);
destroZone = new BiomeGenDestroZone(119).setBiomeName("Destro Zone").setDisableRain().setTemperatureRainfall(2.0F, 0.0F);
destroZoneHills = new BiomeGenDestroZone(120).setBiomeName("Destro Zone Hills").setDisableRain().setTemperatureRainfall(2.0F, 0.0F).setHeight(height_LowHills);
walRockland = new BiomeGenWalRockland(121).setBiomeName("Wal Rocklands").setHeight(height_Default).setDisableRain().setTemperatureRainfall(1.0F, 0F);
nileSavanna = new BiomeGenNileSavanna(122).setBiomeName("Nile Savanna").setHeight(height_LowPlains).setTemperatureRainfall(1.2F, 0.0F).setDisableRain().setColor(0x12431967);
nileSavannaPlateau = new BiomeGenNileSavanna(123).setBiomeName("Nile Savanna Plateau").setHeight(height_HighPlateaus).setTemperatureRainfall(1.0F, 0.0F).setDisableRain().setColor(0x10984804);
nileJungle = new BiomeGenNileJungle(124, false).setColor(5470985).setBiomeName("Nile Jungle").func_76733_a(5470985).setTemperatureRainfall(0.95F, 0.9F);
nileJungleHills = new BiomeGenNileJungle(125, false).setColor(0x33CC33).setBiomeName("Nile Jungle Hills").func_76733_a(5470985).setTemperatureRainfall(0.95F, 0.9F).setHeight(height_LowHills);
nileJungleEdge = new BiomeGenNileJungle(126, true).setColor(0x5CD65C).setBiomeName("Nile Jungle Edge").func_76733_a(5470985).setTemperatureRainfall(0.95F, 0.8F);
nileSwampland = new BiomeGenNileSwamp(127).setBiomeName("Nile Swampland").func_76733_a(9154376).setHeight(height_PartiallySubmerged).setTemperatureRainfall(0.8F, 0.9F);
nileMesa = new BiomeGenNileMesa(138, false, false).setColor(14238997).setBiomeName("Nile Mesa");
nileMesaPlateau_F = new BiomeGenNileMesa(139, false, true).setColor(11573093).setBiomeName("Nile Mesa Plateau F").setHeight(height_HighPlateaus);
nileMesaPlateau = new BiomeGenNileMesa(140, false, false).setColor(13274213).setBiomeName("Nile Mesa Plateau").setHeight(height_HighPlateaus);
nileMountains = new BiomeGenNileMountains(141, false).setColor(6316128).setBiomeName("Nile Mountain").setHeight(height_MidHills).setTemperatureRainfall(0.2F, 0.3F);
nileMountainsEdge = new BiomeGenNileMountains(142, true).setColor(7501978).setBiomeName("Nile Mountain Edge").setHeight(height_MidHills.attenuate()).setTemperatureRainfall(0.2F, 0.3F);
nileMountainsPlus = new BiomeGenNileMountains(143, true).setColor(5271632).setBiomeName("Nile Mountain+").setHeight(height_MidHills).setTemperatureRainfall(0.2F, 0.3F);
BiomeManager.addSpawnBiome(bioZone);
BiomeManager.addSpawnBiome(redSeed);
BiomeManager.addSpawnBiome(blueTaiga);
BiomeManager.addSpawnBiome(blueTaigaHills);
BiomeManager.addSpawnBiome(blueColdTaiga);
BiomeManager.addSpawnBiome(blueMegaTaiga);
BiomeManager.addSpawnBiome(blueMegaTaigaHills);
BiomeManager.addSpawnBiome(pinkZone);
BiomeManager.addVillageBiome(destroZone, true);
BiomeManager.addSpawnBiome(destroZoneHills);
BiomeManager.addVillageBiome(walRockland, true);
BiomeManager.addVillageBiome(nileSavanna, true);
BiomeManager.addSpawnBiome(nileSavannaPlateau);
BiomeManager.addSpawnBiome(nileJungle);
BiomeManager.addSpawnBiome(nileJungleHills);
BiomeManager.addSpawnBiome(nileJungleEdge);
BiomeManager.addSpawnBiome(nileSwampland);
}