本文整理汇总了Java中net.minecraftforge.common.BiomeManager类的典型用法代码示例。如果您正苦于以下问题:Java BiomeManager类的具体用法?Java BiomeManager怎么用?Java BiomeManager使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
BiomeManager类属于net.minecraftforge.common包,在下文中一共展示了BiomeManager类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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: 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);
}
示例3: GenLayerBiomeEpic
import net.minecraftforge.common.BiomeManager; //导入依赖的package包/类
public GenLayerBiomeEpic(long p_i2122_1_, GenLayer p_i2122_3_, WorldType p_i2122_4_)
{
super(p_i2122_1_);
this.parent = p_i2122_3_;
this.desertBiomes.removeAll(BiomeManager.desertBiomes);
this.warmBiomes.removeAll(BiomeManager.warmBiomes);
this.coolBiomes.removeAll(BiomeManager.coolBiomes);
this.icyBiomes.removeAll(BiomeManager.icyBiomes);
if (p_i2122_4_ == WorldType.DEFAULT_1_1)
{
desertBiomes.add(new BiomeEntry(BiomeRegistry.biomePat, 10));
desertBiomes.add(new BiomeEntry(BiomeRegistry.biomeJen, 10));
}
else
{
desertBiomes.add(new BiomeEntry(BiomeRegistry.biomePat, 10));
desertBiomes.add(new BiomeEntry(BiomeRegistry.biomeJen, 10));
}
}
示例4: DimensionProperties
import net.minecraftforge.common.BiomeManager; //导入依赖的package包/类
public DimensionProperties(int id) {
name = "Temp";
resetProperties();
planetId = id;
parentPlanet = -1;
childPlanets = new HashSet<Integer>();
orbitalPhi = 0;
allowedBiomes = new LinkedList<BiomeManager.BiomeEntry>();
terraformedBiomes = new LinkedList<BiomeManager.BiomeEntry>();
satallites = new HashMap<>();
tickingSatallites = new HashMap<Long,SatelliteBase>();
isNativeDimension = true;
isGasGiant = false;
}
示例5: 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);
}
示例6: BiomeGenCandy
import net.minecraftforge.common.BiomeManager; //导入依赖的package包/类
public BiomeGenCandy(int id){
super(id);
this.theBiomeDecorator.treesPerChunk = 6;
this.theBiomeDecorator.grassPerChunk = 2;
this.theBiomeDecorator.mushroomsPerChunk = 1;
setDisableRain();
setHeight(new BiomeGenBase.Height(1.5F, 0.5F));
this.spawnableCreatureList.clear();
this.spawnableCreatureList.add(new SpawnListEntry(EntityPeep.class, 10, 4, 4));
this.spawnableCreatureList.add(new SpawnListEntry(EntityUnicorn.class, 10, 4, 4));
this.spawnableCreatureList.add(new SpawnListEntry(EntityCandySheep.class, 10, 4, 4));
this.spawnableMonsterList.clear();
this.spawnableMonsterList.add(new SpawnListEntry(EntityCalavera.class, 100, 4, 4));
this.spawnableMonsterList.add(new SpawnListEntry(EntityZombie.class, 100, 4, 4));
this.spawnableMonsterList.add(new SpawnListEntry(EntityGingerbread.class, 100, 4, 6));
this.spawnableMonsterList.add(new SpawnListEntry(EntityCreeper.class, 100, 4, 4));
this.spawnableMonsterList.add(new SpawnListEntry(EntitySpider.class, 100, 4, 4));
this.spawnableMonsterList.add(new SpawnListEntry(EntityWitch.class, 10, 4, 4));
BiomeManager.addBiome(BiomeManager.BiomeType.WARM, new BiomeManager.BiomeEntry(this, Config.candyWeight));
BiomeDictionary.registerBiomeType(this, BiomeDictionary.Type.MAGICAL, BiomeDictionary.Type.MOUNTAIN, BiomeDictionary.Type.LUSH);
setBiomeName("Rock Candy Mountain");
setColor(0x8AFFF0);
this.waterColorMultiplier = 0x899CFF;
}
示例7: BiomeGenMadness
import net.minecraftforge.common.BiomeManager; //导入依赖的package包/类
public BiomeGenMadness(int id)
{
super(id);
this.spawnableCreatureList.clear();
this.theBiomeDecorator.treesPerChunk = -1;
this.theBiomeDecorator.grassPerChunk = -1;
this.theBiomeDecorator.mushroomsPerChunk = -1;
this.topBlock = Blocks.packed_ice;
this.fillerBlock = Blocks.packed_ice;
this.spawnableCreatureList.clear();
this.spawnableMonsterList.clear();
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 SpawnListEntry(EntityShoggoth.class, 90, 4, 4));
this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntityEnderman.class, 30, 1, 4));
BiomeManager.addBiome(BiomeManager.BiomeType.ICY, new BiomeManager.BiomeEntry(this, Config.madnessWeight));
BiomeManager.addBiome(BiomeManager.BiomeType.COOL, new BiomeManager.BiomeEntry(this, Config.madnessWeight));
BiomeManager.addStrongholdBiome(this);
BiomeDictionary.registerBiomeType(this, BiomeDictionary.Type.COLD, BiomeDictionary.Type.DEAD, BiomeDictionary.Type.MOUNTAIN, BiomeDictionary.Type.SNOWY);
setBiomeName("Mountain of Madness");
setTemperatureRainfall(0.05F, 0.5F);
this.setHeight(BiomeGenBase.height_HighPlateaus);
this.setColor(0x0E875B);
this.waterColorMultiplier = 0x004A07;
}
示例8: BiomeGenSpooky
import net.minecraftforge.common.BiomeManager; //导入依赖的package包/类
public BiomeGenSpooky(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));
BiomeManager.addBiome(BiomeManager.BiomeType.COOL, new BiomeEntry(this, Config.spookyWeight));
BiomeManager.addStrongholdBiome(this);
BiomeDictionary.registerBiomeType(this, Type.SPOOKY, Type.MAGICAL, Type.FOREST);
setBiomeName("Spooky Forest");
setTemperatureRainfall(0.25F, 0.5F);
setColor(0xF2A100);
this.waterColorMultiplier = 0x970E0E;
}
示例9: BiomeGenShadow
import net.minecraftforge.common.BiomeManager; //导入依赖的package包/类
BiomeGenShadow(int id){
super(id);
this.theBiomeDecorator.treesPerChunk = 0;
this.theBiomeDecorator.flowersPerChunk = 0;
this.theBiomeDecorator.deadBushPerChunk = 4;
this.theBiomeDecorator.mushroomsPerChunk = 8;
this.theBiomeDecorator.reedsPerChunk = 0;
this.theBiomeDecorator.clayPerChunk = 1;
this.theBiomeDecorator.waterlilyPerChunk = 0;
this.theBiomeDecorator.sandPerChunk2 = 0;
this.theBiomeDecorator.sandPerChunk = 0;
this.theBiomeDecorator.grassPerChunk = 8;
this.waterColorMultiplier = 0x00002F;
this.flowers.clear();
this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntityShadowSlime.class, 60, 1, 1));
BiomeManager.addBiome(BiomeManager.BiomeType.COOL, new BiomeManager.BiomeEntry(this, Config.shadowWeight));
BiomeManager.addStrongholdBiome(this);
BiomeDictionary.registerBiomeType(this, BiomeDictionary.Type.SPOOKY, BiomeDictionary.Type.WET, BiomeDictionary.Type.SWAMP,
BiomeDictionary.Type.COLD, BiomeDictionary.Type.MAGICAL);
setBiomeName("Shadow Fen");
setColor(0x3D3D3D);
setHeight(height_PartiallySubmerged);
setTemperatureRainfall(0.4F, 0.9F);
}
示例10: MapGenStronghold
import net.minecraftforge.common.BiomeManager; //导入依赖的package包/类
public MapGenStronghold()
{
this.structureCoords = new ChunkCoordIntPair[3];
this.field_82671_h = 32.0D;
this.field_82672_i = 3;
this.field_151546_e = new ArrayList();
BiomeGenBase[] abiomegenbase = BiomeGenBase.getBiomeGenArray();
int i = abiomegenbase.length;
for (int j = 0; j < i; ++j)
{
BiomeGenBase biomegenbase = abiomegenbase[j];
if (biomegenbase != null && biomegenbase.rootHeight > 0.0F && !BiomeManager.strongHoldBiomesBlackList.contains(biomegenbase))
{
this.field_151546_e.add(biomegenbase);
}
}
for (BiomeGenBase biome : BiomeManager.strongHoldBiomes)
{
if (!this.field_151546_e.contains(biome))
{
this.field_151546_e.add(biome);
}
}
}
示例11: 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);
}
}
示例12: 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;
}
示例13: 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));
}
示例14: JenGenLayerBiome
import net.minecraftforge.common.BiomeManager; //导入依赖的package包/类
public JenGenLayerBiome(long p_i2122_1_, GenLayer p_i2122_3_, WorldType p_i2122_4_)
{
super(p_i2122_1_);
this.parent = p_i2122_3_;
this.desertBiomes.addAll(BiomeManager.desertBiomes);
this.warmBiomes.addAll(BiomeManager.warmBiomes);
this.coolBiomes.addAll(BiomeManager.coolBiomes);
this.icyBiomes.addAll(BiomeManager.icyBiomes);
if (p_i2122_4_ == WorldType.DEFAULT_1_1)
{
desertBiomes.add(new BiomeEntry(BiomeGenBase.desert, 10));
desertBiomes.add(new BiomeEntry(BiomeGenBase.forest, 10));
desertBiomes.add(new BiomeEntry(BiomeGenBase.extremeHills, 10));
desertBiomes.add(new BiomeEntry(BiomeGenBase.swampland, 10));
desertBiomes.add(new BiomeEntry(BiomeGenBase.plains, 10));
desertBiomes.add(new BiomeEntry(BiomeGenBase.taiga, 10));
desertBiomes.add(new BiomeEntry(BiomeRegistry.biomeJen, 10));
}
else
{
desertBiomes.add(new BiomeEntry(BiomeGenBase.desert, 30));
desertBiomes.add(new BiomeEntry(BiomeGenBase.savanna, 20));
desertBiomes.add(new BiomeEntry(BiomeGenBase.plains, 10));
desertBiomes.add(new BiomeEntry(BiomeRegistry.biomeJen, 10));
}
}
示例15: PatGenLayerBiome
import net.minecraftforge.common.BiomeManager; //导入依赖的package包/类
public PatGenLayerBiome(long p_i2122_1_, GenLayer p_i2122_3_, WorldType p_i2122_4_)
{
super(p_i2122_1_);
this.parent = p_i2122_3_;
this.desertBiomes.addAll(BiomeManager.desertBiomes);
this.warmBiomes.addAll(BiomeManager.warmBiomes);
this.coolBiomes.addAll(BiomeManager.coolBiomes);
this.icyBiomes.addAll(BiomeManager.icyBiomes);
if (p_i2122_4_ == WorldType.DEFAULT_1_1)
{
desertBiomes.add(new BiomeEntry(BiomeGenBase.desert, 10));
desertBiomes.add(new BiomeEntry(BiomeGenBase.forest, 10));
desertBiomes.add(new BiomeEntry(BiomeGenBase.extremeHills, 10));
desertBiomes.add(new BiomeEntry(BiomeGenBase.swampland, 10));
desertBiomes.add(new BiomeEntry(BiomeGenBase.plains, 10));
desertBiomes.add(new BiomeEntry(BiomeGenBase.taiga, 10));
desertBiomes.add(new BiomeEntry(BiomeRegistry.biomePat, 10));
}
else
{
desertBiomes.add(new BiomeEntry(BiomeGenBase.desert, 30));
desertBiomes.add(new BiomeEntry(BiomeGenBase.savanna, 20));
desertBiomes.add(new BiomeEntry(BiomeGenBase.plains, 10));
desertBiomes.add(new BiomeEntry(BiomeRegistry.biomePat, 10));
}
}