22declare(strict_types=1);
 
   24namespace pocketmine\block\utils;
 
   26use pocketmine\utils\LegacyEnumShimTrait;
 
   44    use LegacyEnumShimTrait;
 
   58    public function getDisplayName() : string{
 
   61            self::SPRUCE => 
"Spruce",
 
   62            self::BIRCH => 
"Birch",
 
   63            self::JUNGLE => 
"Jungle",
 
   64            self::ACACIA => 
"Acacia",
 
   65            self::DARK_OAK => 
"Dark Oak",
 
   66            self::MANGROVE => 
"Mangrove",
 
   67            self::CRIMSON => 
"Crimson",
 
   68            self::WARPED => 
"Warped",
 
   69            self::CHERRY => 
"Cherry",
 
   70            self::PALE_OAK => 
"Pale Oak",
 
   74    public function isFlammable() : bool{
 
   75        return $this !== self::CRIMSON && $this !== self::WARPED;
 
   78    public function getStandardLogSuffix() : ?string{
 
   79        return $this === self::CRIMSON || $this === self::WARPED ? 
"Stem" : null;
 
   82    public function getAllSidedLogSuffix() : ?string{
 
   83        return $this === self::CRIMSON || $this === self::WARPED ? 
"Hyphae" : null;