22declare(strict_types=1);
26use pocketmine\block\utils\HorizontalFacingTrait;
36 use HorizontalFacingTrait;
38 protected bool $connected =
false;
39 protected bool $powered =
false;
42 $w->horizontalFacing($this->facing);
43 $w->bool($this->connected);
44 $w->bool($this->powered);
47 public function isConnected() : bool{ return $this->connected; }
51 $this->connected = $connected;
55 public function isPowered() : bool{ return $this->powered; }
59 $this->powered = $powered;
66 $this->facing = $face;
67 return parent::place($tx, $item, $blockReplace, $blockClicked, $face, $clickVector, $player);
describeBlockOnlyState(RuntimeDataDescriber $w)
setPowered(bool $powered)
setConnected(bool $connected)
place(BlockTransaction $tx, Item $item, Block $blockReplace, Block $blockClicked, int $face, Vector3 $clickVector, ?Player $player=null)