Don’t know anything about the code behind it, but I know tool belts can holster multiple items, so you may be able to look there as a reference.
Boots also used to be able to and they might still in the 0.C Stable, so you might be able to check there for reference as well.