getItemStack

open override fun getItemStack(): @Nullable ItemStack?(source)

The amount of the returned ItemStack does not matter and will not be used at any point. For specifying the item amount, use getAmount.

This allows for arbitrarily large amounts to be set, instead of being constrained by the maximum amount of an ItemStack.

WARNING: Callers to this function should not mutate the ItemStack that is returned. This will likely lead to unexpected behaviour.