Added get/setPickupDelay on Item entities, thanks robin0van0der0v

By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
Bukkit/Spigot 2011-09-25 03:40:12 +01:00
parent 0d3e401580
commit c2d3c5ce3e

View file

@ -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);
}