22declare(strict_types=1);
24namespace pocketmine\block\utils;
26use pocketmine\world\generator\object\TreeType;
37 public function getTreeType() : TreeType{
39 self::OAK => TreeType::OAK,
40 self::SPRUCE => TreeType::SPRUCE,
41 self::BIRCH => TreeType::BIRCH,
42 self::JUNGLE => TreeType::JUNGLE,
43 self::ACACIA => TreeType::ACACIA,
44 self::DARK_OAK => TreeType::DARK_OAK,
48 public function getDisplayName() : string{
49 return $this->getTreeType()->getDisplayName();