mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-03 23:07:40 +01:00
parent
7c60ceee2c
commit
1019bd7464
@ -39,6 +39,20 @@ public interface Item extends Entity {
|
|||||||
*/
|
*/
|
||||||
public void setPickupDelay(int delay);
|
public void setPickupDelay(int delay);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets if this Item should live forever
|
||||||
|
*
|
||||||
|
* @param unlimited true if the lifetime is unlimited
|
||||||
|
*/
|
||||||
|
public void setUnlimitedLifetime(boolean unlimited);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets if this Item lives forever
|
||||||
|
*
|
||||||
|
* @return true if the lifetime is unlimited
|
||||||
|
*/
|
||||||
|
public boolean isUnlimitedLifetime();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the owner of this item.
|
* Sets the owner of this item.
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user