Bukkit/CraftBukkit — pull request #1277 by Black-Hole (2013-12-04 18:59:15+00:00)
Title: [B+C] Fixed generation of jungle trees and add new tree types for mega redwoods and tall birches. Adds BUKKIT-5042, fixed BUKKIT-5043

The Issue:
Minecraft 1.7 introduced new tree types. While the ACACIA and DARK_OAK were added to TreeType, mega redwood and tall birch were not. The method World.generateTree() is for creating trees of a specified TreeType. When using this method with TreeType.JUNGLE, instead of a jungle tree, a mega redwood tree is generated.

Justification for this PR:
It should be possible for plugins to generate all tree types. And jungle trees should generate the right tree type.

PR Breakdown:
This PR fixes the generation of jungle trees. Like the other jungle tree types it mirrors the code and magic values from BlockSapling.
For mega redwood and tall birch it's using the new NMS tree generators.

Testing Results and Materials:
Running fine on my test server with a plugin similar to WorldEdit. It should be easy to test with a dev version of WorldEdit for 1.7.2.
I tested every tree type. All trees looks like they should. BlockChangeDelegate is working with all types, tested it with a "/undo" command.

Relevant PR:
B-979 - https://github.com/Bukkit/Bukkit/pull/979

JIRA Tickets:
BUKKIT-5042 - https://bukkit.atlassian.net/browse/BUKKIT-5042
BUKKIT-5043 - https://bukkit.atlassian.net/browse/BUKKIT-5043