本文整理汇总了Java中net.minecraftforge.common.BiomeManager.addVillageBiome方法的典型用法代码示例。如果您正苦于以下问题:Java BiomeManager.addVillageBiome方法的具体用法?Java BiomeManager.addVillageBiome怎么用?Java BiomeManager.addVillageBiome使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.minecraftforge.common.BiomeManager
的用法示例。
在下文中一共展示了BiomeManager.addVillageBiome方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: preInit
import net.minecraftforge.common.BiomeManager; //导入方法依赖的package包/类
public static void preInit() {
int biomeID = 10;
while (BiomeDictionary.isBiomeRegistered(biomeID))
biomeID++;
// Create Town Forest
biomeTownForest = new BiomeTownForest(biomeID).setBiomeName(BiomeTownForest.name);
// Allow villages in this biome
BiomeManager.addVillageBiome(biomeTownForest, true);
BiomeDictionary.registerBiomeType(biomeTownForest, Type.MAGICAL);
int weight = Configs.VILLAGE.town_weight;
LogHelper.info("ModBiomes: Town Forest created with weight: " + weight);
biomeEntryTownForest = new BiomeEntry(biomeTownForest, weight);
BiomeManager.addBiome(BiomeType.WARM, biomeEntryTownForest);
// Create City Forest
biomeID++;
biomeCityPlains = new BiomeCityPlains(biomeID).setBiomeName(BiomeCityPlains.name);
// Allow villages in this biome
BiomeManager.addVillageBiome(biomeCityPlains, true);
BiomeDictionary.registerBiomeType(biomeCityPlains, Type.MAGICAL);
weight = Configs.VILLAGE.city_weight;
LogHelper.info("ModBiomes: City Plains created with weight: " + weight);
biomeEntryCityPlains = new BiomeEntry(biomeCityPlains, weight);
BiomeManager.addBiome(BiomeType.WARM, biomeEntryCityPlains);
}
示例2: register
import net.minecraftforge.common.BiomeManager; //导入方法依赖的package包/类
public static Biome register(String name, Biome biome, boolean villages, BiomeDictionary.Type... dictionaryTypes) {
//biome.setRegistryName(ATG.MODID, name);
//GameRegistry.register(biome);
// public static final Biome NAME = new BiomeName();
if (villages) {
BiomeManager.addVillageBiome(biome, true);
}
if (dictionaryTypes.length > 0) {
//BiomeDictionary.registerBiomeType(biome, dictionaryTypes);
}
return biome;
}
示例3: init
import net.minecraftforge.common.BiomeManager; //导入方法依赖的package包/类
public static void init() {
BiomeManager.addBiome(BiomeType.WARM, new BiomeEntry(cherryForest, 4));
BiomeManager.addBiome(BiomeType.WARM, new BiomeEntry(rubberPlains, 4));
BiomeManager.addBiome(BiomeType.WARM, new BiomeEntry(lemonForest, 4));
BiomeManager.addBiome(BiomeType.WARM, new BiomeEntry(pearForest, 4));
BiomeManager.addBiome(BiomeType.WARM, new BiomeEntry(mangoForest, 4));
BiomeManager.addBiome(BiomeType.WARM, new BiomeEntry(fruitForest, 2));
BiomeManager.addBiome(BiomeType.WARM, new BiomeEntry(mapleWoods, 5));
BiomeManager.addBiome(BiomeType.WARM, new BiomeEntry(oliveWoods, 5));
BiomeManager.addBiome(BiomeType.WARM, new BiomeEntry(ebonyWoods, 5));
BiomeManager.addBiome(BiomeType.WARM, new BiomeEntry(jacarandaWoods, 5));
BiomeManager.addBiome(BiomeType.WARM, new BiomeEntry(endearingWoods, 3));
BiomeManager.addBiome(BiomeType.DESERT, new BiomeEntry(bananaGrove, 6));
BiomeManager.addBiome(BiomeType.COOL, new BiomeEntry(cherryForest, 4));
BiomeManager.addBiome(BiomeType.COOL, new BiomeEntry(rubberPlains, 4));
BiomeManager.addBiome(BiomeType.COOL, new BiomeEntry(lemonForest, 4));
BiomeManager.addBiome(BiomeType.COOL, new BiomeEntry(pearForest, 4));
BiomeManager.addBiome(BiomeType.COOL, new BiomeEntry(mangoForest, 4));
BiomeManager.addBiome(BiomeType.COOL, new BiomeEntry(fruitForest, 2));
BiomeManager.addBiome(BiomeType.COOL, new BiomeEntry(mapleWoods, 5));
BiomeManager.addBiome(BiomeType.COOL, new BiomeEntry(oliveWoods, 5));
BiomeManager.addBiome(BiomeType.COOL, new BiomeEntry(ebonyWoods, 5));
BiomeManager.addBiome(BiomeType.COOL, new BiomeEntry(jacarandaWoods, 5));
BiomeManager.addBiome(BiomeType.COOL, new BiomeEntry(endearingWoods, 3));
BiomeManager.addBiome(BiomeType.WARM, new BiomeEntry(bananaGrove, 3));
BiomeManager.addVillageBiome(rubberPlains, true);
BiomeManager.addVillageBiome(bananaGrove, true);
}
示例4: 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);
}
}
示例5: addBiome
import net.minecraftforge.common.BiomeManager; //导入方法依赖的package包/类
public static void addBiome(BiomeGenBase biome) {
BiomeManager.addVillageBiome(biome, true);
LogHelper.info("BiomeRegistrant: " + String.format("Added %s (ID:%d) as a village biome.", biome.biomeName, biome.biomeID));
}
示例6: 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);
}
示例7: loadBiomes
import net.minecraftforge.common.BiomeManager; //导入方法依赖的package包/类
public static void loadBiomes() {
// Put biomes in biomes list//
bioZone = new BiomeGenBioZone(IDs.bioZone).setBiomeName("Bio Zone").setHeight(height_MidHills).setTemperatureRainfall(0.8F, 0.4F);
redSeed = new BiomeGenRedSeed(IDs.redSeed).setBiomeName("Red Seed").setHeight(height_LowPlains).setTemperatureRainfall(0.8F, 0.4F);
blueTaiga = new BiomeGenBlueTaiga(IDs.blueTaiga, 0).setBiomeName("Blue Taiga").setFillerBlockMetadata(5159473).setTemperatureRainfall(0.25F, 0.8F).setHeight(height_MidPlains);
blueTaigaHills = new BiomeGenBlueTaiga(IDs.blueTaigaHills, 0).setBiomeName("Blue Taiga Hills").setFillerBlockMetadata(5159473).setTemperatureRainfall(0.25F, 0.8F).setHeight(height_LowHills);
blueColdTaiga = new BiomeGenBlueTaiga(IDs.blueColdTaiga, 0).setBiomeName("Cold Blue Taiga").setFillerBlockMetadata(5159473).setEnableSnow().setTemperatureRainfall(-0.5F, 0.4F).setHeight(height_MidPlains).func_150563_c(16777215);
blueColdTaigaHills = new BiomeGenBlueTaiga(IDs.blueColdTaigaHills, 0).setBiomeName("Cold Blue Taiga Hills").setFillerBlockMetadata(5159473).setEnableSnow().setTemperatureRainfall(-0.5F, 0.4F).setHeight(height_LowHills).func_150563_c(16777215);
blueMegaTaiga = new BiomeGenBlueTaiga(IDs.blueMegaTaiga, 1).setBiomeName("Mega Blue Taiga").setFillerBlockMetadata(5159473).setTemperatureRainfall(0.3F, 0.8F).setHeight(height_MidPlains);
blueMegaTaigaHills = new BiomeGenBlueTaiga(IDs.blueMegaTaigaHills, 1).setBiomeName("Mega Blue Taiga Hills").setFillerBlockMetadata(5159473).setTemperatureRainfall(0.3F, 0.8F).setHeight(height_LowHills);
pinkZone = new BiomeGenPinkZone(IDs.pinkZone).setBiomeName("Pink Zone").setHeight(height_Default).setTemperatureRainfall(0.8F, 0.4F);
destroZone = new BiomeGenDestroZone(IDs.destroZone).setBiomeName("Destro Zone").setDisableRain().setTemperatureRainfall(2.0F, 0.0F);
destroZoneHills = new BiomeGenDestroZone(IDs.destroZoneHills).setBiomeName("Destro Zone Hills").setDisableRain().setTemperatureRainfall(2.0F, 0.0F).setHeight(height_LowHills);
walRockland = new BiomeGenWalRockland(IDs.walRockland).setBiomeName("Wal Rocklands").setHeight(height_Default).setDisableRain().setTemperatureRainfall(1.0F, 0F);
nileSavanna = new BiomeGenNileSavanna(IDs.nileSavanna).setBiomeName("Nile Savanna").setHeight(height_LowPlains).setTemperatureRainfall(1.2F, 0.0F).setDisableRain().setColor(0x12431967);
nileSavannaPlateau = new BiomeGenNileSavanna(IDs.nileSavannaPlateau).setBiomeName("Nile Savanna Plateau").setHeight(height_HighPlateaus).setTemperatureRainfall(1.0F, 0.0F).setDisableRain().setColor(0x10984804);
nileJungle = new BiomeGenNileJungle(IDs.nileJungle, false).setColor(5470985).setBiomeName("Nile Jungle").setFillerBlockMetadata(5470985).setTemperatureRainfall(0.95F, 0.9F);
nileJungleHills = new BiomeGenNileJungle(IDs.nileJungleHills, false).setColor(0x33CC33).setBiomeName("Nile Jungle Hills").setFillerBlockMetadata(5470985).setTemperatureRainfall(0.95F, 0.9F).setHeight(height_LowHills);
nileJungleEdge = new BiomeGenNileJungle(IDs.nileJungleEdge, true).setColor(0x5CD65C).setBiomeName("Nile Jungle Edge").setFillerBlockMetadata(5470985).setTemperatureRainfall(0.95F, 0.8F);
nileSwampland = new BiomeGenNileSwamp(IDs.nileSwampland).setBiomeName("Nile Swampland").setFillerBlockMetadata(9154376).setHeight(height_PartiallySubmerged).setTemperatureRainfall(0.8F, 0.9F);
nileMesa = new BiomeGenNileMesa(IDs.nileMesa, false, false).setColor(14238997).setBiomeName("Nile Mesa");
nileMesaPlateau_F = new BiomeGenNileMesa(IDs.nileMesaPlateau_F, false, true).setColor(11573093).setBiomeName("Nile Mesa Plateau F").setHeight(height_HighPlateaus);
nileMesaPlateau = new BiomeGenNileMesa(IDs.nileMesaPlateau, false, false).setColor(13274213).setBiomeName("Nile Mesa Plateau").setHeight(height_HighPlateaus);
nileMountains = new BiomeGenNileMountains(IDs.nileMountains, false).setColor(6316128).setBiomeName("Nile Mountain").setHeight(height_MidHills).setTemperatureRainfall(0.2F, 0.3F);
nileMountainsEdge = new BiomeGenNileMountains(IDs.nileMountainsEdge, true).setColor(7501978).setBiomeName("Nile Mountain Edge").setHeight(height_MidHills.attenuate()).setTemperatureRainfall(0.2F, 0.3F);
nileMountainsPlus = new BiomeGenNileMountains(IDs.nileMountainsPlus, 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);
}