pocketmine\block\RedstoneSource::place PHP Method

place() public method

public place ( Item $item, Block $block, Block $target, $face, $fx, $fy, $fz, Player $player = null )
$item pocketmine\item\Item
$block Block
$target Block
$player pocketmine\Player
    public function place(Item $item, Block $block, Block $target, $face, $fx, $fy, $fz, Player $player = null)
    {
        $this->getLevel()->setBlock($this, $this, true);
        if ($this->isActivated()) {
            $this->activate();
        }
    }