pocketmine\block\QuartzOre::getDrops PHP Method

getDrops() public method

public getDrops ( Item $item )
$item pocketmine\item\Item
    public function getDrops(Item $item)
    {
        if ($item->isPickaxe() >= Tool::TIER_STONE) {
            return [[Item::QUARTZ, 0, mt_rand(4, 8)]];
        } else {
            return [];
        }
    }