/*******************************************************************************
 * Copyright 2011-2014 SirSengir
 *
 * This work (the API) is licensed under the "MIT" License, see LICENSE.txt for details.
 ******************************************************************************/
package forestry.api.arboriculture;

import net.minecraft.world.World;
import net.minecraft.world.gen.feature.WorldGenerator;

import com.mojang.authlib.GameProfile;

import net.minecraftforge.common.util.ForgeDirection;

import forestry.api.world.ITreeGenData;

/**
 * Implements the tree generation for a tree species.
 */
public interface ITreeGenerator {
	WorldGenerator getWorldGenerator(ITreeGenData tree);
	void setLogBlock(World world, int x, int y, int z, ForgeDirection facing);
	void setLeaves(World world, GameProfile owner, int x, int y, int z, boolean decorative);
}

@@ -718,83 +718,471 @@
 );%0D%0A
-%09void setLogBlock(World world, int x, int y, int z, ForgeDirection facing);
+%0D%0A%09void setLogBlock(ITreeGenome genome, World world, int x, int y, int z, ForgeDirection facing);%0D%0A%0D%0A%09void setLeaves(ITreeGenome genome, World world, GameProfile owner, int x, int y, int z, boolean decorative);%0D%0A%0D%0A%09/**%0D%0A%09 * @deprecated since Forestry 4.2. use the genome version%0D%0A%09 */%0D%0A%09@Deprecated%0D%0A%09void setLogBlock(World world, int x, int y, int z, ForgeDirection facing);%0D%0A%0D%0A%09/**%0D%0A%09 * @deprecated since Forestry 4.2. use the genome version%0D%0A%09 */%0D%0A%09@Deprecated
 %0D%0A%09v

Add genome-aware tree generation methods for logs and leaves