Added setItemStack(ItemStack stack) to CraftItemDrop

By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
CraftBukkit/Spigot 2011-02-01 10:43:16 +00:00
parent e658c25515
commit 94b8e2a239

View file

@ -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 + '}';