summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDinnerbone <dinnerbone@dinnerbone.com>2011-09-25 03:40:28 +0100
committerDinnerbone <dinnerbone@dinnerbone.com>2011-09-25 03:40:28 +0100
commit6c6eef8759dad0b35fc875bcb47eb82c6b1313b1 (patch)
tree8edc6f929e264a4dfe08a8c0b622d7097122b800 /src
parentceba082703ffaf2371caedc0e8e1d7c1a3c3e39d (diff)
downloadcraftbukkit-6c6eef8759dad0b35fc875bcb47eb82c6b1313b1.tar
craftbukkit-6c6eef8759dad0b35fc875bcb47eb82c6b1313b1.tar.gz
craftbukkit-6c6eef8759dad0b35fc875bcb47eb82c6b1313b1.tar.lz
craftbukkit-6c6eef8759dad0b35fc875bcb47eb82c6b1313b1.tar.xz
craftbukkit-6c6eef8759dad0b35fc875bcb47eb82c6b1313b1.zip
Implemented get/setPickupDelay on Item entities, thanks robin0van0der0v
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/bukkit/craftbukkit/entity/CraftItem.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftItem.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftItem.java
index 4bb98b0a..52458f19 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";
}
-
}