pocketmine\block\Beacon::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)
    {
        $this->getLevel()->setBlock($this, $this, true, true);
        $nbt = new CompoundTag("", [new StringTag("id", Tile::BEACON), new IntTag("x", $block->x), new IntTag("y", $block->y), new IntTag("z", $block->z)]);
        $pot = Tile::createTile(Tile::BEACON, $this->getLevel()->getChunk($this->x >> 4, $this->z >> 4), $nbt);
        return true;
    }