22declare(strict_types=1);
26use pocketmine\block\utils\PillarRotationTrait;
27use pocketmine\block\utils\WoodTypeTrait;
36 use PillarRotationTrait;
39 private bool $stripped =
false;
42 $w->bool($this->stripped);
45 public function isStripped() : bool{ return $this->stripped; }
49 $this->stripped = $stripped;
54 return $this->woodType->isFlammable() ? 300 : 0;
58 return $this->woodType->isFlammable() ? 5 : 0;
62 return $this->woodType->isFlammable() ? 5 : 0;
66 if(!$this->stripped && $item instanceof
Axe){
67 $item->applyDamage(1);
68 $this->stripped =
true;
69 $this->position->getWorld()->setBlock($this->position, $this);
onInteract(Item $item, int $face, Vector3 $clickVector, ?Player $player=null, array &$returnedItems=[])
describeBlockItemState(RuntimeDataDescriber $w)
setStripped(bool $stripped)