empty

@Contract(pure = true)
fun empty(): ItemStack

Gets the empty item stack.

This item stack is generally used as a default value instead of using null.

It must satisfy the following requirements:

  • It's type must always be air.

  • It's amount must always be 1.

  • It's metadata must always be empty. The definition of "empty" is up to the implementation, but generally, it should be defined as having all of its properties set to their default values.