pocketmine\block\Anvil::place PHP Метод

place() публичный Метод

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)
    {
        $direction = ($player !== null ? $player->getDirection() : 0) & 0x3;
        $this->meta = $this->meta & 0xc | $direction;
        $this->getLevel()->setBlock($block, $this, true, true);
    }