Leurnid wrote...
So I guess what I am really curious about is which functions would one use to restrict stored item types and container capacity?
It sounds to me more like you are asking what event do you use. It would be
OnDisturbedIf you are asking how to the the same for an item container, sadly, it can not be done. Items have no events for when items are added or removed from them.