接口 Item

所有超级接口:
CommandSender, Entity, Metadatable, Nameable, Permissible, ServerOperator

public interface Item extends Entity
Represents an Item.
  • 方法详细资料

    • getItemStack

      ItemStack getItemStack()
      Gets the item stack associated with this item drop.
      返回:
      An item stack.
    • setItemStack

      void setItemStack(ItemStack stack)
      Sets the item stack associated with this item drop.
      参数:
      stack - An item stack.
    • getPickupDelay

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

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