diff options
author | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-09-25 03:40:12 +0100 |
---|---|---|
committer | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-09-25 03:40:12 +0100 |
commit | a5eaa00ef865e259b58231370e5c9aaed9d75d97 (patch) | |
tree | 1937c845460d94eb024017b9834e07d2d50aa6f6 /src/main/java/org | |
parent | 4030c98c20349e736b643db55599089cca743203 (diff) | |
download | bukkit-a5eaa00ef865e259b58231370e5c9aaed9d75d97.tar bukkit-a5eaa00ef865e259b58231370e5c9aaed9d75d97.tar.gz bukkit-a5eaa00ef865e259b58231370e5c9aaed9d75d97.tar.lz bukkit-a5eaa00ef865e259b58231370e5c9aaed9d75d97.tar.xz bukkit-a5eaa00ef865e259b58231370e5c9aaed9d75d97.zip |
Added get/setPickupDelay on Item entities, thanks robin0van0der0v
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/bukkit/entity/Item.java | 14 |
1 files changed, 14 insertions, 0 deletions
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); } |