diff options
author | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-02-01 10:43:16 +0000 |
---|---|---|
committer | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-02-01 10:43:16 +0000 |
commit | 743ff05b2e4efc0e443f5f74f60295ea4c32b5f8 (patch) | |
tree | d6aa8e15f20fba1fda8780c2aa1ee9546808384e /src | |
parent | 24f140d1f43498b5e40db23d834f9d1f597a9bce (diff) | |
download | craftbukkit-743ff05b2e4efc0e443f5f74f60295ea4c32b5f8.tar craftbukkit-743ff05b2e4efc0e443f5f74f60295ea4c32b5f8.tar.gz craftbukkit-743ff05b2e4efc0e443f5f74f60295ea4c32b5f8.tar.lz craftbukkit-743ff05b2e4efc0e443f5f74f60295ea4c32b5f8.tar.xz craftbukkit-743ff05b2e4efc0e443f5f74f60295ea4c32b5f8.zip |
Added setItemStack(ItemStack stack) to CraftItemDrop
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/entity/CraftItemDrop.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftItemDrop.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftItemDrop.java index 649915a6..70b3c06b 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftItemDrop.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftItemDrop.java @@ -23,6 +23,10 @@ public class CraftItemDrop extends CraftEntity implements ItemDrop { return new CraftItemStack(item.a); } + public void setItemStack(ItemStack stack) { + item.a = new net.minecraft.server.ItemStack(stack.getTypeId(), stack.getAmount(), stack.getDurability()); + } + @Override public String toString() { return "CraftItemDrop{" + "item=" + item + '}'; |