From 1019bd7464d00c8acb5e9641dad07bc7bfe2be95 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Sat, 12 Mar 2022 09:26:12 +1100 Subject: [PATCH] #725: Add Item Unlimited Lifetime APIs By: Gero --- .../src/main/java/org/bukkit/entity/Item.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/entity/Item.java b/paper-api/src/main/java/org/bukkit/entity/Item.java index 3f2736fbdd..65dd4554c6 100644 --- a/paper-api/src/main/java/org/bukkit/entity/Item.java +++ b/paper-api/src/main/java/org/bukkit/entity/Item.java @@ -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. *