meta = $meta; } public function getName() : string{ return "Red Mushroom Block"; } public function getHardness() : float{ return 0.2; } public function getToolType() : int{ return Tool::TYPE_AXE; } public function getDrops(Item $item) : array{ return [ Item::get(Item::RED_MUSHROOM, 0, mt_rand(0, 2)) ]; } }