Added setItemStack(ItemStack stack) to CraftItemDrop

This commit is contained in:
Dinnerbone 2011-02-01 10:43:16 +00:00
parent 24f140d1f4
commit 743ff05b2e

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