001 package org.bukkit.entity; 002 003 import org.bukkit.inventory.ItemStack; 004 005 /** 006 * Represents an Item. 007 */ 008 public interface Item extends Entity { 009 010 /** 011 * Gets the item stack associated with this item drop. 012 * 013 * @return An item stack. 014 */ 015 public ItemStack getItemStack(); 016 017 /** 018 * Sets the item stack associated with this item drop. 019 * 020 * @param stack An item stack. 021 */ 022 public void setItemStack(ItemStack stack); 023 024 /** 025 * Gets the delay before this Item is available to be picked up by players 026 * 027 * @return Remaining delay 028 */ 029 public int getPickupDelay(); 030 031 /** 032 * Sets the delay before this Item is available to be picked up by players 033 * 034 * @param delay New delay 035 */ 036 public void setPickupDelay(int delay); 037 }