pocketmine\block\FlowerPot::getDrops PHP Метод

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

public getDrops ( Item $item ) : array
$item pocketmine\item\Item
Результат array
    public function getDrops(Item $item) : array
    {
        $items = array([Item::FLOWER_POT, 0, 1]);
        /** @var FlowerPotTile $tile */
        if ($this->getLevel() != null && ($tile = $this->getLevel()->getTile($this)) instanceof FlowerPotTile) {
            if ($tile->getFlowerPotItem() !== Item::AIR) {
                $items[] = array($tile->getFlowerPotItem(), $tile->getFlowerPotData(), 1);
            }
        }
        return $items;
    }