package com.ferreusveritas.dynamictrees.trees;

import com.ferreusveritas.dynamictrees.ModBlocks;
import com.ferreusveritas.dynamictrees.util.CompatHelper;

import net.minecraft.block.BlockPlanks;
import net.minecraft.world.biome.Biome;
import net.minecraftforge.common.BiomeDictionary.Type;

public class TreeAcacia extends DynamicTree {
		
	public class SpeciesAcacia extends Species {

		SpeciesAcacia(DynamicTree treeFamily) {
			super(treeFamily.getName(), treeFamily, ModBlocks.acaciaLeavesProperties);
			
			//Acacia Trees are short, very slowly growing trees
			setBasicGrowingParameters(0.15f, 12.0f, 0, 3, 0.7f);
		
			envFactor(Type.COLD, 0.25f);
			envFactor(Type.NETHER, 0.75f);
			envFactor(Type.WET, 0.75f);
			
			setupStandardSeedDropping();
		}
		
		@Override
		public boolean isBiomePerfect(Biome biome) {
			return CompatHelper.biomeHasType(biome, Type.SAVANNA);
		}
		
	}
		
	public TreeAcacia() {
		super(BlockPlanks.EnumType.ACACIA);
	}

	@Override
	public void createSpecies() {
		setCommonSpecies(new SpeciesAcacia(this));
	}
	
}

@@ -951,16 +951,66 @@
 CACIA);%0A
+%09%09ModBlocks.acaciaLeavesProperties.setTree(this);%0A
 %09%7D%0A%0A%09@Ov

set acacia leaves properties