22declare(strict_types=1);
24namespace pocketmine\block\utils;
38 public function getDisplayName() : string{
41 self::SPRUCE =>
"Spruce",
42 self::BIRCH =>
"Birch",
43 self::JUNGLE =>
"Jungle",
44 self::ACACIA =>
"Acacia",
45 self::DARK_OAK =>
"Dark Oak",
46 self::MANGROVE =>
"Mangrove",
47 self::CRIMSON =>
"Crimson",
48 self::WARPED =>
"Warped",
49 self::CHERRY =>
"Cherry",
53 public function isFlammable() : bool{
54 return $this !== self::CRIMSON && $this !== self::WARPED;
57 public function getStandardLogSuffix() : ?string{
58 return $this === self::CRIMSON || $this === self::WARPED ?
"Stem" : null;
61 public function getAllSidedLogSuffix() : ?string{
62 return $this === self::CRIMSON || $this === self::WARPED ?
"Hyphae" : null;