From e6e2df18be858e7ed3b3ac366c87736ad71efa0a Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Sun, 25 Sep 2011 03:40:28 +0100 Subject: [PATCH] Implemented get/setPickupDelay on Item entities, thanks robin0van0der0v By: Dinnerbone --- .../java/org/bukkit/craftbukkit/entity/CraftItem.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftItem.java b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftItem.java index 4bb98b0aaf..52458f19bc 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftItem.java +++ b/paper-server/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"; } - }