22declare(strict_types=1);
24namespace pocketmine\block\utils;
39 public function getDisplayName() : string{
42 self::SPRUCE =>
"Spruce",
43 self::BIRCH =>
"Birch",
44 self::JUNGLE =>
"Jungle",
45 self::ACACIA =>
"Acacia",
46 self::DARK_OAK =>
"Dark Oak",
47 self::MANGROVE =>
"Mangrove",
48 self::CRIMSON =>
"Crimson",
49 self::WARPED =>
"Warped",
50 self::CHERRY =>
"Cherry",
51 self::PALE_OAK =>
"Pale Oak",
55 public function isFlammable() : bool{
56 return $this !== self::CRIMSON && $this !== self::WARPED;
59 public function getStandardLogSuffix() : ?string{
60 return $this === self::CRIMSON || $this === self::WARPED ?
"Stem" : null;
63 public function getAllSidedLogSuffix() : ?string{
64 return $this === self::CRIMSON || $this === self::WARPED ?
"Hyphae" : null;