diff options
author | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-01-04 19:56:19 +0000 |
---|---|---|
committer | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-01-04 19:56:19 +0000 |
commit | 458c62757a0c995cc5cea1c2caaa277828342333 (patch) | |
tree | ba41062f6c57625e258c013827875e06aa9d356c /src/main/java | |
parent | a7e432df19659f2edf201de5274c5af13658b574 (diff) | |
download | bukkit-458c62757a0c995cc5cea1c2caaa277828342333.tar bukkit-458c62757a0c995cc5cea1c2caaa277828342333.tar.gz bukkit-458c62757a0c995cc5cea1c2caaa277828342333.tar.lz bukkit-458c62757a0c995cc5cea1c2caaa277828342333.tar.xz bukkit-458c62757a0c995cc5cea1c2caaa277828342333.zip |
Constructors for damage on itemstack
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/org/bukkit/ItemStack.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/ItemStack.java b/src/main/java/org/bukkit/ItemStack.java index a7247178..af176698 100644 --- a/src/main/java/org/bukkit/ItemStack.java +++ b/src/main/java/org/bukkit/ItemStack.java @@ -26,6 +26,16 @@ public class ItemStack { this(type.getID(), amount);
}
+ public ItemStack(final int type, final int amount, final byte damage) {
+ this.type = type;
+ this.amount = amount;
+ this.damage = damage;
+ }
+
+ public ItemStack(final Material type, final int amount, final byte damage) {
+ this(type.getID(), amount, damage);
+ }
+
/**
* Gets the type of this item
*
|