#725: Add Item Unlimited Lifetime APIs

By: Gero <gecam59@gmail.com>
This commit is contained in:
Bukkit/Spigot 2022-03-12 09:26:12 +11:00
parent 7c60ceee2c
commit 1019bd7464

View File

@ -39,6 +39,20 @@ public interface Item extends Entity {
*/
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.
*