22declare(strict_types=1);
24namespace pocketmine\block\utils;
26use pocketmine\utils\LegacyEnumShimTrait;
44 use LegacyEnumShimTrait;
57 public function getDisplayName() : string{
60 self::SPRUCE =>
"Spruce",
61 self::BIRCH =>
"Birch",
62 self::JUNGLE =>
"Jungle",
63 self::ACACIA =>
"Acacia",
64 self::DARK_OAK =>
"Dark Oak",
65 self::MANGROVE =>
"Mangrove",
66 self::CRIMSON =>
"Crimson",
67 self::WARPED =>
"Warped",
68 self::CHERRY =>
"Cherry",
72 public function isFlammable() : bool{
73 return $this !== self::CRIMSON && $this !== self::WARPED;
76 public function getStandardLogSuffix() : ?string{
77 return $this === self::CRIMSON || $this === self::WARPED ?
"Stem" : null;
80 public function getAllSidedLogSuffix() : ?string{
81 return $this === self::CRIMSON || $this === self::WARPED ?
"Hyphae" : null;