Fill a cocktail shaker halfway with ice.
Pour in crème de menthe, white crème de cacao, and heavy cream.
Shake vigorously for about 20 seconds until well chilled.
Strain into a chilled martini or coupe glass.
Top with whipped cream and garnish with chocolate shavings or sprinkles if desired.
Serve immediately.