From 6c6eef8759dad0b35fc875bcb47eb82c6b1313b1 Mon Sep 17 00:00:00 2001 From: Dinnerbone Date: Sun, 25 Sep 2011 03:40:28 +0100 Subject: [PATCH] Implemented get/setPickupDelay on Item entities, thanks robin0van0der0v --- .../java/org/bukkit/craftbukkit/entity/CraftItem.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftItem.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftItem.java index 4bb98b0aaf..52458f19bc 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftItem.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftItem.java @@ -22,9 +22,16 @@ public class CraftItem extends CraftEntity implements Item { item.itemStack = new net.minecraft.server.ItemStack(stack.getTypeId(), stack.getAmount(), stack.getDurability()); } + public int getPickupDelay() { + return item.pickupDelay; + } + + public void setPickupDelay(int delay) { + item.pickupDelay = delay; + } + @Override public String toString() { return "CraftItem"; } - }