Make item unstackable – Minecraft mod


As you might know from one of my previous questions, I am developing a Minecraft mod. I need to make an item unstackable (like max stack size of one). How do I do this? Should I do it when I’m registering it? Should I do it in the item’s class?