pocketmine\block\Podzol::getDrops PHP Method

getDrops() public method

public getDrops ( Item $item ) : array
$item pocketmine\item\Item
return array
    public function getDrops(Item $item) : array
    {
        if ($item->getEnchantmentLevel(Enchantment::TYPE_MINING_SILK_TOUCH) > 0) {
            return [[Item::PODZOL, 0, 1]];
        } else {
            return [[Item::DIRT, 0, 1]];
        }
    }