pocketmine\block\RedstoneWire::onBreak PHP Method

onBreak() public method

public onBreak ( Item $item )
$item pocketmine\item\Item
    public function onBreak(Item $item)
    {
        if ($this->canCalc()) {
            $this->calcSignal(0, self::DESTROY);
        } else {
            $this->getLevel()->setBlock($this, new Air());
        }
    }