From a5eaa00ef865e259b58231370e5c9aaed9d75d97 Mon Sep 17 00:00:00 2001 From: Dinnerbone Date: Sun, 25 Sep 2011 03:40:12 +0100 Subject: Added get/setPickupDelay on Item entities, thanks robin0van0der0v --- src/main/java/org/bukkit/entity/Item.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/main/java/org/bukkit/entity/Item.java b/src/main/java/org/bukkit/entity/Item.java index bd953db3..4583f7d3 100644 --- a/src/main/java/org/bukkit/entity/Item.java +++ b/src/main/java/org/bukkit/entity/Item.java @@ -23,4 +23,18 @@ public interface Item extends Entity { * @param stack An item stack. */ public void setItemStack(ItemStack stack); + + /** + * Gets the delay before this Item is available to be picked up by players + * + * @return Remaining delay + */ + public int getPickupDelay(); + + /** + * Sets the delay before this Item is available to be picked up by players + * + * @param delay New delay + */ + public void setPickupDelay(int delay); } -- cgit v1.2.3