pocketmine\entity\MagmaCube::getDrops PHP Method

getDrops() public method

TODO: Stop lava/fire damage
public getDrops ( )
    public function getDrops()
    {
        return [ItemItem::get(ItemItem::MAGMA_CREAM, 0, mt_rand(0, 2))];
    }