pocketmine\entity\IronGolem::getDrops PHP Метод

getDrops() публичный Метод

public getDrops ( )
    public function getDrops()
    {
        //Not affected by Looting.
        $drops = array(ItemItem::get(ItemItem::IRON_INGOT, 0, mt_rand(3, 5)));
        $drops[] = ItemItem::get(ItemItem::POPPY, 0, mt_rand(0, 2));
        return $drops;
    }