Interface Item

All Superinterfaces:
CommandSender, Entity, Metadatable, Nameable, Permissible, PersistentDataHolder, ServerOperator

public interface Item
extends Entity
Represents a dropped item.
  • Method Details

    • getItemStack

      @NotNull ItemStack getItemStack()
      Gets the item stack associated with this item drop.
      Returns:
      An item stack.
    • setItemStack

      void setItemStack​(@NotNull ItemStack stack)
      Sets the item stack associated with this item drop.
      Parameters:
      stack - An item stack.
    • getPickupDelay

      int getPickupDelay()
      Gets the delay before this Item is available to be picked up by players
      Returns:
      Remaining delay
    • setPickupDelay

      void setPickupDelay​(int delay)
      Sets the delay before this Item is available to be picked up by players
      Parameters:
      delay - New delay