mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 19:49:35 +01:00
Added get/setPickupDelay on Item entities, thanks robin0van0der0v
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
parent
0d3e401580
commit
c2d3c5ce3e
1 changed files with 14 additions and 0 deletions
|
@ -23,4 +23,18 @@ public interface Item extends Entity {
|
|||
* @param stack An item stack.
|
||||
*/
|
||||
public void setItemStack(ItemStack stack);
|
||||
|
||||
/**
|
||||
* Gets the delay before this Item is available to be picked up by players
|
||||
*
|
||||
* @return Remaining delay
|
||||
*/
|
||||
public int getPickupDelay();
|
||||
|
||||
/**
|
||||
* Sets the delay before this Item is available to be picked up by players
|
||||
*
|
||||
* @param delay New delay
|
||||
*/
|
||||
public void setPickupDelay(int delay);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue