meta = $meta; } public function getName() : string{ return "Carrot Block"; } public function getDrops(Item $item) : array{ return [ ItemFactory::get(Item::CARROT, 0, $this->meta >= 0x07 ? mt_rand(1, 4) : 1) ]; } public function getPickedItem() : Item{ return ItemFactory::get(Item::CARROT); } }