mirror of
https://github.com/Minestom/Minestom.git
synced 2025-02-03 05:51:37 +01:00
Add ItemStack constructor without amount parameter
This commit is contained in:
parent
cd273b4d99
commit
a9577f084a
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user