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