mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-02 17:32:03 +01:00
Added Item.(get|set)ItemStack().
By: sk89q <the.sk89q@gmail.com>
This commit is contained in:
parent
6132abb1f5
commit
f712d6011d
1 changed files with 15 additions and 3 deletions
|
@ -1,8 +1,7 @@
|
|||
/**
|
||||
*
|
||||
*/
|
||||
package org.bukkit.entity;
|
||||
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
|
||||
/**
|
||||
* Represents an Item.
|
||||
*
|
||||
|
@ -11,4 +10,17 @@ package org.bukkit.entity;
|
|||
*/
|
||||
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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue