Package extrabiomes.module.summa.biome

Source Code of extrabiomes.module.summa.biome.BiomeGreenHills

/**
* This work is licensed under the Creative Commons
* Attribution-ShareAlike 3.0 Unported License. To view a copy of this
* license, visit http://creativecommons.org/licenses/by-sa/3.0/.
*/

package extrabiomes.module.summa.biome;

import net.minecraft.world.ColorizerFoliage;
import net.minecraft.world.ColorizerGrass;
import net.minecraft.world.biome.BiomeGenBase;
import net.minecraft.world.biome.BiomeGenBase.Height;
import net.minecraftforge.common.BiomeDictionary.Type;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import extrabiomes.lib.BiomeSettings;
import extrabiomes.lib.DecorationSettings;

public class BiomeGreenHills extends ExtrabiomeGenBase
{

  @Override
  public DecorationSettings getDecorationSettings() {
    return DecorationSettings.GREENHILLS;
  }

    public BiomeGreenHills()
    {
    super(BiomeSettings.GREENHILLS, Type.HILLS);
       
        setColor(0x68C474);
        setBiomeName("Green Hills");
        temperature = BiomeGenBase.forest.temperature - 0.1F;
        rainfall = BiomeGenBase.forest.rainfall + 0.1F;
        this.setHeight(new Height(0.9F, 0.3F));
    }
   
    @Override
    @SideOnly(Side.CLIENT)
    public int getBiomeFoliageColor(int x, int y, int z)
    {
        return ColorizerFoliage.getFoliageColor(0.7F, 0.8F);
    }
   
    @Override
    @SideOnly(Side.CLIENT)
    public int getBiomeGrassColor(int x, int y, int z)
    {
        return ColorizerGrass.getGrassColor(0.7F, 0.8F);
    }
   
}
TOP

Related Classes of extrabiomes.module.summa.biome.BiomeGreenHills

TOP
Copyright © 2018 www.massapi.com. 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.