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


Java BiomeGenOcean类代码示例

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


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

示例1: updateEntity

import net.minecraft.world.biome.BiomeGenOcean; //导入依赖的package包/类
@Override
public void updateEntity() {

	rotation += speed;

	if (yCoord >= 75 && worldObj.canBlockSeeTheSky(xCoord, yCoord, zCoord)) {

		speed = 5F;

		if (worldObj.getTotalWorldTime() % 40L == 0L) {

			if (!worldObj.isRemote)
				EnergyUtil.addEnergy(this, 30);

			if (worldObj.getBiomeGenForCoords(xCoord, zCoord) instanceof BiomeGenOcean) {
				speed = 8F;
				if (!worldObj.isRemote)
				EnergyUtil.addEnergy(this, 10);
			}
		}
	}

	else {
		speed = 0;
	}
}
 
开发者ID:TeamMonumental,项目名称:FusionWarfare,代码行数:27,代码来源:TileEntityWindTurbine.java

示例2: addOceanOre

import net.minecraft.world.biome.BiomeGenOcean; //导入依赖的package包/类
/**
 * Adds a ore with one spawn block.
 * @param ore The ore which should generate.
 * @param spawnBlock The block in which the ore will spawn.
 * @param random A instance of random.
 * @param world A instance of the current world.
 * @param posX The X position in which the ore should generate.
 * @param posZ The Z position in which the ore should generate.
 * @param minY The minimum Y position the ore can generate.
 * @param maxY The maximum Y position the ore can generate.
 * @param minVeinSize The minimum vein size.
 * @param maxVeinSize The maximum vein size.
 * @param spawnChance The chance of the block spawning.
 * */
private void addOceanOre(Block ore, Block spawnBlock, Random random, World world, int posX, int posZ, int minY, int maxY, int minVeinSize, int maxVeinSize, int spawnChance) {
	BiomeGenBase biome = world.getWorldChunkManager().getBiomeGenAt(posX ,posZ);
	if(biome instanceof BiomeGenOcean){
		for (int i = 0; i < spawnChance; i++) {
			int defaultChunkSize = 16;
			int xPos = posX + random.nextInt(defaultChunkSize);
			int yPos = minY + random.nextInt(maxY - minY);
			int zPos = posZ + random.nextInt(defaultChunkSize);

			new WorldGenMinable(ore,(minVeinSize + random.nextInt(maxVeinSize - minVeinSize)), spawnBlock).generate(world, random, xPos, yPos, zPos);
		}
	}
	
	

}
 
开发者ID:dogking190,项目名称:Mythical-Mobs,代码行数:31,代码来源:MythicalWorldGen.java

示例3: handle

import net.minecraft.world.biome.BiomeGenOcean; //导入依赖的package包/类
@Override
public void handle(Coord here) {
    if (!here.isAir()) {
        non_air_block_count++;
    } else {
        return;
    }
    final Block hereBlock = here.getBlock();
    boolean waterOkay = waterOkay(here, hereBlock);
    boolean lavaOkay = lavaOkay(here, hereBlock);
    if (!waterOkay && !lavaOkay) return;

    Coord real = idc.shadow2real(here);
    Block realBlock = real.getBlock();
    Vec3 tmp = SpaceUtil.newVec();
    if (waterOkay && realBlock.getMaterial() == Material.water) {
        if (realBlock.getMobilityFlag() == 0) return;
        tmp = realBlock.modifyAcceleration(worldObj, real.toBlockPos(), null, tmp);
        if (tmp.xCoord == 0 && tmp.yCoord == 0 && tmp.zCoord == 0) {
            BiomeGenBase biome = real.getBiome();
            if (NumUtil.intersect(sea_min, sea_max, real.y, real.y)) {
                for (int forward = 0; forward < 1; forward++) {
                    if (biome instanceof BiomeGenRiver) {
                        tmp = new Vec3(riverFlow, 0, riverFlow);
                    } else if (biome instanceof BiomeGenOcean) {
                        tmp = new Vec3(oceanFlow, 0, oceanFlow);
                    } else {
                        biome = real.add(fwd).getBiome();
                        continue;
                    }
                    break;
                }
            }
        } else {
            tmp = SpaceUtil.scale(tmp, otherFlowNerf);
        }
    } else if (lavaOkay && realBlock.getMaterial() == Material.lava) {
        tmp = realBlock.modifyAcceleration(worldObj, real.toBlockPos(), null, tmp);
    } else {
        return;
    }
    idc.getTransform().getRot().applyReverseRotation(tmp);
    Vec3 P = here.toMiddleVector().subtract(centerOfMass);
    P = SpaceUtil.componentMultiply(P, antiMask); // Remove the axial component of P
    tmp = SpaceUtil.componentMultiply(tmp, antiMask); // And the same for F
    Vec3 torque = tmp.crossProduct(P);
    water_torque = water_torque.add(torque);
}
 
开发者ID:purpleposeidon,项目名称:Factorization,代码行数:49,代码来源:TileEntityWaterWheel.java

示例4: isCorrectStructure

import net.minecraft.world.biome.BiomeGenOcean; //导入依赖的package包/类
private boolean isCorrectStructure() {

		Location bottom = getCurrentLocation().add(0, -3, 0);
		
		if (!(worldObj.getBiomeGenForCoords(xCoord, zCoord) instanceof BiomeGenOcean) || !hasEnoughWater()) {
			return false;
		}
		
		if (!bottom.compareBlocks(InitBlocks.steel_casing)) {
			return false;
		}
		
		if (!getCurrentLocation().add(0, 3, 0).compareBlocks(InitBlocks.reactor_cooling_unit)) {
			return false;
		}
		
		ForgeDirection[] dirs = {ForgeDirection.NORTH, ForgeDirection.EAST, ForgeDirection.SOUTH, ForgeDirection.WEST};
		
		for (ForgeDirection dir : dirs) {
			
			for (int i = 0; i < 5; i++) {
				
				Location side = bottom.add(ForgeDirection.UP).add(dir).add(0, i, 0);
				
				if (i == 0 || i == 4) {
					
					if (!side.compareBlocks(InitBlocks.steel_casing)) {					
						return false;
					}
				}
				
				if (i == 1 || i == 3) {
					
					if (!side.compareBlocks(InitBlocks.reinforced_glass)) {					
						return false;
					}
				}
				
				if (i == 2) {
					
					if (!side.compareBlocks(InitBlocks.steel_casing, InitBlocks.reinforced_glass)) {					
						return false;
					}					
				}
			}		
		}
		
		for (int i = 0; i < 5; i++) {
			
			Location temp = bottom.add(0, i + 1, 0);
			
			if (i != 2) {
				
				if (!temp.compareBlocks(Blocks.water, Blocks.air)) {
					return false;
				}
			}
		}
		
		return true;
	}
 
开发者ID:TeamMonumental,项目名称:FusionWarfare,代码行数:62,代码来源:TileEntityCapsuleCore.java

示例5: getTemperaturesForBiomes

import net.minecraft.world.biome.BiomeGenOcean; //导入依赖的package包/类
public static float getTemperaturesForBiomes(BiomeGenBase biome, EntityPlayer player) {
	if (biome instanceof BiomeGenBeach) {
		return 30;
	}
	if (biome instanceof BiomeGenHills) {
		if (player.posY > 64) {
			return (float) (18 - player.posY - 64 / 250);
		} else
			return 18;
	}
	if (biome instanceof BiomeGenDesert) {
		return 40;
	}

	if (biome instanceof BiomeGenForest) {
		return 22;
	}

	if (biome instanceof BiomeGenEnd) {
		return -23;
	}

	if (biome instanceof BiomeGenHell) {
		return 40;
	}

	if (biome instanceof BiomeGenJungle) {
		return -25;
	}

	if (biome instanceof BiomeGenOcean) {
		return 15;
	}

	if (biome instanceof BiomeGenPlains) {
		return 23;
	}

	if (biome instanceof BiomeGenRiver) {
		return 19;
	}

	if (biome instanceof BiomeGenSavanna) {
		return 33;
	}

	if (biome instanceof BiomeGenSwamp) {
		return 21;
	}

	if (biome instanceof BiomeGenSnow) {
		return -5;
	}

	if (biome instanceof BiomeGenStoneBeach) {
		return 28;
	}

	if (biome instanceof BiomeGenMushroomIsland) {
		return 23;
	}

	if (biome instanceof BiomeGenMutated) {
		return (float) (Math.random() * 30);
	}

	if (biome instanceof BiomeGenMesa) {
		return (float) (Math.random() * 30);
	}

	return 21.3f;
}
 
开发者ID:ItsAMysterious,项目名称:Real-Life-Mod-1.8,代码行数:73,代码来源:TemperatureHelper.java

示例6: preInit

import net.minecraft.world.biome.BiomeGenOcean; //导入依赖的package包/类
@EventHandler
public void preInit(FMLPreInitializationEvent event) {
	tabAtlantis = new CreativeTabs("tabAtlantis") {public Item getTabIconItem() {return AtlantisMod.pearl;}};
	
	blockAtlantisPortal = (BlockPortal)(new BlockPortal()).setBlockName("blockAtlantisPortal").setBlockTextureName("portal");
	
	blockDeepSand = (new BlockFalling()).setHardness(0.5F).setStepSound(Block.soundTypeSand).setBlockName("blockDeepSand").setCreativeTab(AtlantisMod.tabAtlantis).setBlockTextureName("atlantismod:deep_sand");
	blockRottenPlanks = (new BlockRottenPlanks()).setHardness(1.5F).setStepSound(Block.soundTypeWood).setBlockName("rottenPlanks").setCreativeTab(AtlantisMod.tabAtlantis).setBlockTextureName("atlantismod:rotten_planks");

	pearl = (new Item()).setUnlocalizedName("pearl").setCreativeTab(AtlantisMod.tabAtlantis).setTextureName("atlantismod:pearl");
	atlantisWand = (ItemAtlantisWand)(new ItemAtlantisWand()).setUnlocalizedName("atlantisWand").setCreativeTab(AtlantisMod.tabAtlantis).setTextureName("atlantismod:portal_wand").setMaxStackSize(1);
	trident = (new ItemTrident(AtlantisMod.Trident)).setCreativeTab(AtlantisMod.tabAtlantis).setTextureName("atlantismod:trident").setUnlocalizedName("trident").setMaxStackSize(1);
	atlantisEye = (new ItemAtlantisEye(2,1.2F,false)).setAlwaysEdible().setUnlocalizedName("atlantisEye").setCreativeTab(AtlantisMod.tabAtlantis).setTextureName("atlantismod:atlantis_eye").setMaxStackSize(16);
	scepter = (new Item()).setUnlocalizedName("scepter").setCreativeTab(AtlantisMod.tabAtlantis).setTextureName("atlantismod:scepter").setMaxStackSize(1);
	necklace = (ItemNecklaceArmor)(new ItemNecklaceArmor(AtlantisMod.NecklaceArmor,0,1)).setUnlocalizedName("necklace").setMaxDamage(10000).setCreativeTab(AtlantisMod.tabAtlantis).setTextureName("atlantismod:necklace").setMaxStackSize(1);
	bubbleWand = (ItemBubbleWand)(new ItemBubbleWand()).setUnlocalizedName("bubbleWand").setCreativeTab(AtlantisMod.tabAtlantis).setTextureName("atlantismod:bubble_wand").setMaxStackSize(1);
	
	fishHead = (new Item()).setUnlocalizedName("fishHead").setCreativeTab(AtlantisMod.tabAtlantis).setTextureName("atlantismod:fish_head");
	
	blockPearl = (new BlockCompressed(MapColor.snowColor)).setHardness(3.0F).setResistance(10.0F).setStepSound(Block.soundTypeMetal).setBlockName("blockPearl").setBlockTextureName("atlantismod:pearl_block").setCreativeTab(AtlantisMod.tabAtlantis);
	oreAtlanteum = (new BlockOre()).setHardness(3.0F).setResistance(5.0F).setBlockName("oreAtlanteum").setBlockTextureName("atlantismod:atlanteum_ore").setCreativeTab(AtlantisMod.tabAtlantis);
	blockAtlanteum = (new BlockCompressed(MapColor.cyanColor)).setHardness(3.0F).setResistance(10.0F).setStepSound(Block.soundTypeMetal).setBlockName("blockAtlanteum").setBlockTextureName("atlantismod:atlanteum_block").setCreativeTab(AtlantisMod.tabAtlantis);
	
	atlanteum = (new Item()).setUnlocalizedName("atlanteum").setCreativeTab(AtlantisMod.tabAtlantis).setTextureName("atlantismod:atlanteum");
	nuggetAtlanteum = (new Item()).setUnlocalizedName("nuggetAtlanteum").setCreativeTab(AtlantisMod.tabAtlantis).setTextureName("atlantismod:atlanteum_nugget");
	
	divingHelmet = (ItemDivingArmor)(new ItemDivingArmor(AtlantisMod.DivingSuit,0,0)).setCreativeTab(AtlantisMod.tabAtlantis).setMaxStackSize(1).setUnlocalizedName("divingHelmet").setTextureName("atlantismod:diving_helmet");
	scubaSuit = (ItemDivingArmor)(new ItemDivingArmor(AtlantisMod.DivingSuit,0,1)).setCreativeTab(AtlantisMod.tabAtlantis).setMaxStackSize(1).setUnlocalizedName("scubaSuit").setTextureName("atlantismod:scuba_suit");
	oxygenTank = (ItemDivingArmor)(new ItemDivingArmor(AtlantisMod.DivingSuit,0,2)).setMaxDamage(10000).setCreativeTab(AtlantisMod.tabAtlantis).setMaxStackSize(1).setUnlocalizedName("oxygenTank").setTextureName("atlantismod:oxygen_tank");
	flippers = (ItemDivingArmor)(new ItemDivingArmor(AtlantisMod.DivingSuit,0,3)).setCreativeTab(AtlantisMod.tabAtlantis).setMaxStackSize(1).setUnlocalizedName("flippers").setTextureName("atlantismod:flippers");
	
	blockSeaweed = (new BlockSeaweed()).setHardness(0.0F).setStepSound(Block.soundTypeGrass).setBlockName("blockSeaweed").setBlockTextureName("atlantismod:seaweed");
	itemSeaweed = (new ItemSeaweed(AtlantisMod.blockSeaweed)).setUnlocalizedName("itemSeaweed").setCreativeTab(AtlantisMod.tabAtlantis).setTextureName("atlantismod:seaweed_item");

	blockCoralOrange = (new BlockCoral(itemCoralOrange)).setHardness(0.0F).setStepSound(Block.soundTypeGrass).setBlockName("blockCoralOrange").setBlockTextureName("atlantismod:orange_coral");
	blockCoralRed = (new BlockCoral(itemCoralRed)).setHardness(0.0F).setStepSound(Block.soundTypeGrass).setBlockName("blockCoralRed").setBlockTextureName("atlantismod:red_coral");
	blockCoralPurple = (new BlockCoral(itemCoralPurple)).setHardness(0.0F).setStepSound(Block.soundTypeGrass).setBlockName("blockCoralPurple").setBlockTextureName("atlantismod:purple_coral");
	blockCoralYellow = (new BlockCoral(itemCoralYellow)).setHardness(0.0F).setStepSound(Block.soundTypeGrass).setBlockName("blockCoralYellow").setBlockTextureName("atlantismod:yellow_coral");
	
	itemCoralOrange = (new ItemSeaweed(AtlantisMod.blockCoralOrange)).setUnlocalizedName("itemCoralOrange").setCreativeTab(AtlantisMod.tabAtlantis).setTextureName("atlantismod:orange_coral_item");
	itemCoralRed = (new ItemSeaweed(AtlantisMod.blockCoralRed)).setUnlocalizedName("itemCoralRed").setCreativeTab(AtlantisMod.tabAtlantis).setTextureName("atlantismod:red_coral_item");
	itemCoralPurple = (new ItemSeaweed(AtlantisMod.blockCoralPurple)).setUnlocalizedName("itemCoralPurple").setCreativeTab(AtlantisMod.tabAtlantis).setTextureName("atlantismod:purple_coral_item");
	itemCoralYellow = (new ItemSeaweed(AtlantisMod.blockCoralYellow)).setUnlocalizedName("itemCoralYellow").setCreativeTab(AtlantisMod.tabAtlantis).setTextureName("atlantismod:yellow_coral_item");
	
	pebble = (new BlockPebble()).setHardness(2.0F).setResistance(5.0F).setStepSound(Block.soundTypeGravel).setBlockName("pebble").setCreativeTab(AtlantisMod.tabAtlantis).setBlockTextureName("atlantismod:pebble");
	
	axePearl = (new ItemPearlAxe(AtlantisMod.PearlTool)).setUnlocalizedName("axePearl").setTextureName("atlantismod:pearl_axe").setCreativeTab(AtlantisMod.tabAtlantis);
	pickaxePearl = (new ItemPearlPickaxe(AtlantisMod.PearlTool)).setUnlocalizedName("pickaxePearl").setTextureName("atlantismod:pearl_pickaxe").setCreativeTab(AtlantisMod.tabAtlantis);
	hoePearl = (new ItemHoe(AtlantisMod.PearlTool)).setUnlocalizedName("hoePearl").setTextureName("atlantismod:pearl_hoe").setCreativeTab(AtlantisMod.tabAtlantis);
	shovelPearl = (new ItemSpade(AtlantisMod.PearlTool)).setUnlocalizedName("shovelPearl").setTextureName("atlantismod:pearl_shovel").setCreativeTab(AtlantisMod.tabAtlantis);
	swordPearl = (new ItemSword(AtlantisMod.PearlTool)).setUnlocalizedName("swordPearl").setTextureName("atlantismod:pearl_sword").setCreativeTab(AtlantisMod.tabAtlantis);
	
	axeAtlanteum = (new ItemAtlanteumAxe(AtlantisMod.AtlanteumTool)).setUnlocalizedName("axeAtlanteum").setTextureName("atlantismod:atlanteum_axe").setCreativeTab(AtlantisMod.tabAtlantis);
	pickaxeAtlanteum = (new ItemAtlanteumPickaxe(AtlantisMod.AtlanteumTool)).setUnlocalizedName("pickaxeAtlanteum").setTextureName("atlantismod:atlanteum_pickaxe").setCreativeTab(AtlantisMod.tabAtlantis);
	hoeAtlanteum = (new ItemHoe(AtlantisMod.AtlanteumTool)).setUnlocalizedName("hoeAtlanteum").setTextureName("atlantismod:atlanteum_hoe").setCreativeTab(AtlantisMod.tabAtlantis);
	shovelAtlanteum = (new ItemSpade(AtlantisMod.AtlanteumTool)).setUnlocalizedName("shovelAtlanteum").setTextureName("atlantismod:atlanteum_shovel").setCreativeTab(AtlantisMod.tabAtlantis);
	swordAtlanteum = (new ItemSword(AtlantisMod.AtlanteumTool)).setUnlocalizedName("swordAtlanteum").setTextureName("atlantismod:atlanteum_sword").setCreativeTab(AtlantisMod.tabAtlantis);
	
	helmetAtlanteum = (ItemAtlanteumArmor)(new ItemAtlanteumArmor(AtlantisMod.AtlanteumArmor,0,0)).setCreativeTab(AtlantisMod.tabAtlantis).setMaxStackSize(1).setUnlocalizedName("helmetAtlanteum").setTextureName("atlantismod:atlanteum_helmet");
	chestAtlanteum = (ItemAtlanteumArmor)(new ItemAtlanteumArmor(AtlantisMod.AtlanteumArmor,0,1)).setCreativeTab(AtlantisMod.tabAtlantis).setMaxStackSize(1).setUnlocalizedName("chestAtlanteum").setTextureName("atlantismod:atlanteum_chestplate");
	legsAtlanteum = (ItemAtlanteumArmor)(new ItemAtlanteumArmor(AtlantisMod.AtlanteumArmor,0,2)).setCreativeTab(AtlantisMod.tabAtlantis).setMaxStackSize(1).setUnlocalizedName("legsAtlanteum").setTextureName("atlantismod:atlanteum_leggings");
	bootsAtlanteum = (ItemAtlanteumArmor)(new ItemAtlanteumArmor(AtlantisMod.AtlanteumArmor,0,3)).setCreativeTab(AtlantisMod.tabAtlantis).setMaxStackSize(1).setUnlocalizedName("bootsAtlanteum").setTextureName("atlantismod:atlanteum_boots");
	
	atlantisOcean = (new BiomeGenAtlantisOcean(44)).setBiomeName("Atlantean Ocean").setHeight(new BiomeGenBase.Height(-1.9F, 0.1F));
	coralReef = (new BiomeGenCoralReef(45)).setBiomeName("Coral Reef").setHeight(new BiomeGenBase.Height(-1.9F, 0.1F));
	deepOcean = (new BiomeGenOcean(46)).setBiomeName("Deepest Ocean").setHeight(new BiomeGenBase.Height(-2.0F, 0.1F));
	darkOcean = (new BiomeGenTheDeep(47)).setBiomeName("Dark Ocean").setHeight(new BiomeGenBase.Height(-1.9F, 0.1F));
	
	biomes = new BiomeGenBase[]{AtlantisMod.atlantisOcean,AtlantisMod.coralReef,AtlantisMod.deepOcean};

	blockRottenPlanks.setHarvestLevel("pickaxe", 2);
	blockDeepSand.setHarvestLevel("shovel", 1);
	blockPearl.setHarvestLevel("pickaxe", 2);
	oreAtlanteum.setHarvestLevel("pickaxe", 2);
	blockAtlanteum.setHarvestLevel("pickaxe", 2);
	
	this.doRegister();
}
 
开发者ID:CodecademyMinecraftMods,项目名称:atlantis-mod,代码行数:79,代码来源:AtlantisMod.java

示例7: DeepOceanBiomeType

import net.minecraft.world.biome.BiomeGenOcean; //导入依赖的package包/类
private DeepOceanBiomeType() {
    super((BiomeGenOcean) BiomeGenBase.deepOcean);
}
 
开发者ID:asusoda,项目名称:Corundum,代码行数:4,代码来源:DeepOceanBiome.java

示例8: FrozenOceanBiomeType

import net.minecraft.world.biome.BiomeGenOcean; //导入依赖的package包/类
private FrozenOceanBiomeType() {
    super((BiomeGenOcean) BiomeGenBase.frozenOcean);
}
 
开发者ID:asusoda,项目名称:Corundum,代码行数:4,代码来源:FrozenOceanBiome.java

示例9: OceanBiomeType

import net.minecraft.world.biome.BiomeGenOcean; //导入依赖的package包/类
private OceanBiomeType() {
    super((BiomeGenOcean) BiomeGenBase.ocean);
}
 
开发者ID:asusoda,项目名称:Corundum,代码行数:4,代码来源:OceanBiome.java

示例10: OceanicBiomeType

import net.minecraft.world.biome.BiomeGenOcean; //导入依赖的package包/类
protected OceanicBiomeType(BiomeGenOcean biomeMC) {
    super(biomeMC);

    addValueAs(OceanicBiomeType.class);
}
 
开发者ID:asusoda,项目名称:Corundum,代码行数:6,代码来源:OceanicBiome.java

示例11: registerVanillaBiomes

import net.minecraft.world.biome.BiomeGenOcean; //导入依赖的package包/类
public static void registerVanillaBiomes(){
	BiomeDictionary.registerBiomeType(new BiomeGenBeach(16), BiomeDictionary.Type.BEACH, BiomeDictionary.Type.SANDY, BiomeDictionary.Type.HOT);
	BiomeDictionary.registerBiomeType(new BiomeGenForest(27, 2), BiomeDictionary.Type.FOREST);
	BiomeDictionary.registerBiomeType(new BiomeGenForest(28, 2), BiomeDictionary.Type.FOREST, BiomeDictionary.Type.HILLS);
	BiomeDictionary.registerBiomeType(new BiomeGenBeach(26), BiomeDictionary.Type.COLD, BiomeDictionary.Type.BEACH, BiomeDictionary.Type.SANDY, BiomeDictionary.Type.HOT);
	BiomeDictionary.registerBiomeType(new BiomeGenTaiga(30, 0), BiomeDictionary.Type.COLD, BiomeDictionary.Type.FOREST, BiomeDictionary.Type.SNOWY);
	BiomeDictionary.registerBiomeType(new BiomeGenTaiga(31, 0), BiomeDictionary.Type.COLD, BiomeDictionary.Type.FOREST, BiomeDictionary.Type.SNOWY, BiomeDictionary.Type.HILLS);
	BiomeDictionary.registerBiomeType(new BiomeGenOcean(24), BiomeDictionary.Type.OCEAN, BiomeDictionary.Type.WATER);
	BiomeDictionary.registerBiomeType(new BiomeGenDesert(2), BiomeDictionary.Type.SANDY, BiomeDictionary.Type.HOT, BiomeDictionary.Type.DRY);
	BiomeDictionary.registerBiomeType(new BiomeGenDesert(17), BiomeDictionary.Type.SANDY, BiomeDictionary.Type.HOT, BiomeDictionary.Type.DRY);
	BiomeDictionary.registerBiomeType(new BiomeGenHills(3, false), BiomeDictionary.Type.COLD, BiomeDictionary.Type.HILLS);
	BiomeDictionary.registerBiomeType(new BiomeGenHills(20, true), BiomeDictionary.Type.COLD, BiomeDictionary.Type.HILLS);
	BiomeDictionary.registerBiomeType(new BiomeGenHills(34, true), BiomeDictionary.Type.COLD, BiomeDictionary.Type.HILLS);
	BiomeDictionary.registerBiomeType(new BiomeGenForest(4, 0), BiomeDictionary.Type.FOREST);
	BiomeDictionary.registerBiomeType(new BiomeGenForest(18, 0), BiomeDictionary.Type.FOREST, BiomeDictionary.Type.HILLS);
	BiomeDictionary.registerBiomeType(new BiomeGenOcean(10), BiomeDictionary.Type.SNOWY, BiomeDictionary.Type.OCEAN, BiomeDictionary.Type.WATER);
	BiomeDictionary.registerBiomeType(new BiomeGenRiver(11), BiomeDictionary.Type.COLD, BiomeDictionary.Type.RIVER);
	BiomeDictionary.registerBiomeType(new BiomeGenHell(8), BiomeDictionary.Type.NETHER);
	BiomeDictionary.registerBiomeType(new BiomeGenSnow(13, false), BiomeDictionary.Type.COLD, BiomeDictionary.Type.HILLS);
	BiomeDictionary.registerBiomeType(new BiomeGenSnow(12, false), BiomeDictionary.Type.SNOWY, BiomeDictionary.Type.COLD, BiomeDictionary.Type.PLAINS);
	BiomeDictionary.registerBiomeType(new BiomeGenJungle(21, false), BiomeDictionary.Type.JUNGLE);
	BiomeDictionary.registerBiomeType(new BiomeGenJungle(23, false), BiomeDictionary.Type.JUNGLE, BiomeDictionary.Type.HILLS);
	BiomeDictionary.registerBiomeType(new BiomeGenJungle(22, false), BiomeDictionary.Type.JUNGLE, BiomeDictionary.Type.HILLS);
	BiomeDictionary.registerBiomeType(new BiomeGenTaiga(32, 1), BiomeDictionary.Type.SNOWY, BiomeDictionary.Type.COLD, BiomeDictionary.Type.FOREST);
	BiomeDictionary.registerBiomeType(new BiomeGenTaiga(33, 1), BiomeDictionary.Type.SNOWY, BiomeDictionary.Type.COLD, BiomeDictionary.Type.FOREST, BiomeDictionary.Type.HILLS);
	BiomeDictionary.registerBiomeType(new BiomeGenStoneBeach(25), BiomeDictionary.Type.WASTELAND, BiomeDictionary.Type.HILLS);
	BiomeDictionary.registerBiomeType(new BiomeGenMesa(38, false, true), BiomeDictionary.Type.WASTELAND, BiomeDictionary.Type.HILLS);
	BiomeDictionary.registerBiomeType(new BiomeGenMesa(39, false, false), BiomeDictionary.Type.WASTELAND, BiomeDictionary.Type.HILLS);
	BiomeDictionary.registerBiomeType(new BiomeGenMushroomIsland(14), BiomeDictionary.Type.MUSHROOM);
	BiomeDictionary.registerBiomeType(new BiomeGenMushroomIsland(15), BiomeDictionary.Type.MUSHROOM);
	BiomeDictionary.registerBiomeType(new BiomeGenSnow(12, false), BiomeDictionary.Type.OCEAN, BiomeDictionary.Type.WATER);
	BiomeDictionary.registerBiomeType(new BiomeGenPlains(1), BiomeDictionary.Type.PLAINS);
	BiomeDictionary.registerBiomeType(new BiomeGenRiver(7), BiomeDictionary.Type.RIVER);
	BiomeDictionary.registerBiomeType(new BiomeGenForest(29, 3), BiomeDictionary.Type.FOREST, BiomeDictionary.Type.DENSE);
	BiomeDictionary.registerBiomeType(new BiomeGenStoneBeach(25), BiomeDictionary.Type.WASTELAND, BiomeDictionary.Type.DRY);
	BiomeDictionary.registerBiomeType(new BiomeGenStoneBeach(25), BiomeDictionary.Type.WASTELAND, BiomeDictionary.Type.DRY);
	BiomeDictionary.registerBiomeType(new BiomeGenEnd(9), BiomeDictionary.Type.END);
	BiomeDictionary.registerBiomeType(new BiomeGenStoneBeach(25), BiomeDictionary.Type.BEACH);
	BiomeDictionary.registerBiomeType(BiomeGenBase.swampland, BiomeDictionary.Type.SWAMP);
	BiomeDictionary.registerBiomeType(new BiomeGenTaiga(5, 0), BiomeDictionary.Type.COLD, BiomeDictionary.Type.FOREST, BiomeDictionary.Type.SNOWY);
	BiomeDictionary.registerBiomeType(new BiomeGenTaiga(19, 0), BiomeDictionary.Type.COLD, BiomeDictionary.Type.FOREST, BiomeDictionary.Type.SNOWY, BiomeDictionary.Type.HILLS);
}
 
开发者ID:gjkf,项目名称:ForeCraft,代码行数:43,代码来源:BiomesHandler.java


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