This is done pretty much everywhere in here, because you can't just use ItemStack due to conflicts with the NMS ItemStack class.