pocketmine\block\RedstoneRepeater::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)
    {
        if ($target->isTransparent() === false) {
            $faces = [2 => 3, 3 => 0, 0 => 1, 1 => 2];
            $this->meta = $faces[$player instanceof Player ? $player->getDirection() : 0];
            $this->getLevel()->setBlock($block, $this, true, true);
            return true;
        }
        return false;
    }