summaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorDinnerbone <dinnerbone@dinnerbone.com>2011-01-04 19:56:19 +0000
committerDinnerbone <dinnerbone@dinnerbone.com>2011-01-04 19:56:19 +0000
commit458c62757a0c995cc5cea1c2caaa277828342333 (patch)
treeba41062f6c57625e258c013827875e06aa9d356c /src/main/java
parenta7e432df19659f2edf201de5274c5af13658b574 (diff)
downloadbukkit-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.java10
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
*