Skip to content

Commit

Permalink
Added Item.(get|set)ItemStack().
Browse files Browse the repository at this point in the history
  • Loading branch information
sk89q committed Feb 23, 2011
1 parent 9732b43 commit 21c2166
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions src/main/java/org/bukkit/entity/Item.java
@@ -1,8 +1,7 @@
/**
*
*/
package org.bukkit.entity;

import org.bukkit.inventory.ItemStack;

/**
* Represents an Item.
*
Expand All @@ -11,4 +10,17 @@
*/
public interface Item extends Entity {

/**
* Gets the item stack associated with this item drop.
*
* @return
*/
public ItemStack getItemStack();

/**
* Sets the item stack associated with this item drop.
*
* @param stack
*/
public void setItemStack(ItemStack stack);
}

0 comments on commit 21c2166

Please sign in to comment.