If anyone wonders what containerItem is, it's used to keep items after a craft.
For example, after crafting cake, the milk buckets turn into buckets.
Forge uses the container item to get the item that an ingredient transforms into.
Thus, buckets are milk buckets' container item.
(If there isn't a container item, then Itemstack.empty is returned)