Merge pull request #176 from Archy-X/master

Add ItemStack constructor without amount parameter
This commit is contained in:
TheMode 2021-03-21 06:05:31 +01:00 committed by GitHub
commit 5284721994
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -96,6 +96,10 @@ public class ItemStack implements DataContainer, PublicCloneable<ItemStack> {
this(material, amount, (short) 0); this(material, amount, (short) 0);
} }
public ItemStack(@NotNull Material material) {
this(material, (byte) 1, (short) 0);
}
/** /**
* Gets a new {@link ItemStack} with the material sets to {@link Material#AIR}. * Gets a new {@link ItemStack} with the material sets to {@link Material#AIR}.
* <p> * <p>