22declare(strict_types=1);
24namespace pocketmine\block\utils;
26use pocketmine\utils\LegacyEnumShimTrait;
27use pocketmine\world\generator\object\TreeType;
41 use LegacyEnumShimTrait;
51 public function getTreeType() : TreeType{
53 self::OAK => TreeType::OAK,
54 self::SPRUCE => TreeType::SPRUCE,
55 self::BIRCH => TreeType::BIRCH,
56 self::JUNGLE => TreeType::JUNGLE,
57 self::ACACIA => TreeType::ACACIA,
58 self::DARK_OAK => TreeType::DARK_OAK,
62 public function getDisplayName() : string{
63 return $this->getTreeType()->getDisplayName();