Add shorthand method to create a stack with no regard to quantity.
@@ -79,6 +79,16 @@ static ItemStack of(ItemType itemType, int quantity) {
return builder().itemType(itemType).quantity(quantity).build();
}
+ /**
+ * Creates a new {@link ItemStack} of the provided {@link ItemType} and quantity of 1
+ *
+ * @param itemType The item type
+ * @return The new item stack
+ */
+ static ItemStack of(ItemType itemType) {
+ return of(itemType, 1);
+ }
+
/**
* Returns an empty {@link ItemStack}.
*
