Package net.minecraft.world.biome

Examples of net.minecraft.world.biome.BiomeGenBase


    public void generate(Random rand, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider)
    {
        chunkX = chunkX << 4;
        chunkZ = chunkZ << 4;
        int rarity = 0;
        final BiomeGenBase biome = world.getBiomeGenForCoords(chunkX, chunkX);
       
        if (biome == BiomeGenBase.forest || biome == BiomeGenBase.forestHills
                || BiomeSettings.FORESTEDHILLS.getBiome().isPresent() && biome == BiomeSettings.FORESTEDHILLS.getBiome().get()
                || BiomeSettings.FORESTEDISLAND.getBiome().isPresent() && biome == BiomeSettings.FORESTEDISLAND.getBiome().get()
                || BiomeSettings.RAINFOREST.getBiome().isPresent() && biome == BiomeSettings.RAINFOREST.getBiome().get())
View Full Code Here


            World world, IChunkProvider chunkGenerator,
            IChunkProvider chunkProvider)
    {
        chunkX = chunkX << 4;
        chunkZ = chunkZ << 4;
        final BiomeGenBase biome = world.getBiomeGenForCoords(chunkX,
                chunkZ);
       
        if (BiomeSettings.MARSH.getBiome().isPresent() && biome == BiomeSettings.MARSH.getBiome().get())
            generateMarsh(random, chunkX, chunkZ, world);
       
View Full Code Here

  }

  protected void registerFlower(BiomeSettings settings, BlockType type) {
    if (!settings.getBiome().isPresent()) return;

        BiomeGenBase biome = settings.getBiome().get();
        final CommonProxy proxy = Extrabiomes.proxy;
        proxy.addGrassPlant(type.block(), type.metadata(), type.weight(), biome);

    final List<BlockType> list;
    if (flowerMaps.containsKey(settings)) {
View Full Code Here

    @Override
    public void generate(Random rand, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider)
    {
        chunkX = chunkX << 4;
        chunkZ = chunkZ << 4;
        final BiomeGenBase biome = world.getBiomeGenForCoords(chunkX, chunkZ);
       
    final BiomeSettings settings = BiomeSettings.findBiomeSettings(biome.biomeID);
    if (settings != null && biomeCheck(settings, biome) && flowerMaps.containsKey(settings)) {
      final ExtrabiomeGenBase eBiome = (ExtrabiomeGenBase)biome;
      final int maxFlowers = eBiome.getDecorationSettings().getSetting(Decoration.NEW_FLOWERS);
View Full Code Here

        this.api = api;
    }
   
    private void doPopulate(Random rand, World world, int x, int z)
    {
        final BiomeGenBase biome = world.getWorldChunkManager()
                .getBiomeGenAt(x, z);
       
        if (((BiomeSettings.MOUNTAINDESERT.getBiome().isPresent() && biome == BiomeSettings.MOUNTAINDESERT.getBiome().get())
                || (BiomeSettings.WASTELAND.getBiome().isPresent() && biome == BiomeSettings.WASTELAND.getBiome().get()))
                && rand.nextFloat() > 0.97)
View Full Code Here

            World world, IChunkProvider chunkGenerator,
            IChunkProvider chunkProvider)
    {
        chunkX = chunkX << 4;
        chunkZ = chunkZ << 4;
        final BiomeGenBase biome = world.getBiomeGenForCoords(chunkX,
                chunkZ);
       
        if (BiomeSettings.MOUNTAINDESERT.getBiome().isPresent() && biome == BiomeSettings.MOUNTAINDESERT.getBiome().get())
            generateRareDesertWell(random, chunkX, chunkZ, world);
    }
View Full Code Here

   
    public static void addTerrainBlockstoBiome(BiomeSettings biome, Block topBlock, Block fillerBlock)
    {
        if (!biome.getBiome().isPresent())
            return;
        final BiomeGenBase baseBiome = biome.getBiome().get();
        baseBiome.topBlock = topBlock;
        baseBiome.fillerBlock = fillerBlock;
    }
View Full Code Here

            World world, IChunkProvider chunkGenerator,
            IChunkProvider chunkProvider)
    {
        chunkX = chunkX << 4;
        chunkZ = chunkZ << 4;
        final BiomeGenBase biome = world.getBiomeGenForCoords(chunkX,
                chunkZ);
        if (!BiomeSettings.MINIJUNGLE.getBiome().isPresent() || biome != BiomeSettings.MINIJUNGLE.getBiome().get())
            return;
       
        // 1 to 3 attempts with with a bias toward 2
View Full Code Here

      BiomeGenBase[] list = getBiomeList();
     
        for(int i = 0; i < list.length; i++) {
            if (!BiomeMap.byBiomeID(i).isDefault()) continue;
            BiomeGenBase bb = list[i];
            if(bb != null) {
                String id = bb.biomeName;
                float tmp = bb.temperature, hum = bb.rainfall;
                BiomeMap m = new BiomeMap(i, id, tmp, hum);
                Log.verboseinfo("Add custom biome [" + m.toString() + "] (" + i + ")");
View Full Code Here

    private String[] getBiomeNames() {
        BiomeGenBase[] list = getBiomeList();
        String[] lst = new String[list.length];
        for(int i = 0; i < list.length; i++) {
            BiomeGenBase bb = list[i];
            if (bb != null) {
                lst[i] = bb.biomeName;
            }
        }
        return lst;
View Full Code Here

TOP

Related Classes of net.minecraft.world.biome.BiomeGenBase

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.