aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/api/0330-Add-API-for-item-entity-health.patch
diff options
context:
space:
mode:
authormaxcom1 <[email protected]>2024-03-23 22:26:17 +0100
committerGitHub <[email protected]>2024-03-23 17:26:17 -0400
commitb6001403e9703cadaa6e8c8558e732b91c3c6d6e (patch)
treea8c57bbc334a8ad48d4ad2b43db335667b142bee /patches/api/0330-Add-API-for-item-entity-health.patch
parent9ec7dfcbc41c6e625de0050b6997160a75df9f44 (diff)
downloadPaper-b6001403e9703cadaa6e8c8558e732b91c3c6d6e.tar.gz
Paper-b6001403e9703cadaa6e8c8558e732b91c3c6d6e.zip
Add methods to change entity physics (#10334)
Diffstat (limited to 'patches/api/0330-Add-API-for-item-entity-health.patch')
-rw-r--r--patches/api/0330-Add-API-for-item-entity-health.patch35
1 files changed, 0 insertions, 35 deletions
diff --git a/patches/api/0330-Add-API-for-item-entity-health.patch b/patches/api/0330-Add-API-for-item-entity-health.patch
deleted file mode 100644
index 572034e557..0000000000
--- a/patches/api/0330-Add-API-for-item-entity-health.patch
+++ /dev/null
@@ -1,35 +0,0 @@
-From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
-From: Jake Potrebic <[email protected]>
-Date: Sat, 28 Aug 2021 09:00:35 -0700
-Subject: [PATCH] Add API for item entity health
-
-
-diff --git a/src/main/java/org/bukkit/entity/Item.java b/src/main/java/org/bukkit/entity/Item.java
-index 6239aec4f6c625a814fa4fd610cdc5ab1a9f6e0f..ced419f8655bff72f0257b639d5f7d73afe3c2e2 100644
---- a/src/main/java/org/bukkit/entity/Item.java
-+++ b/src/main/java/org/bukkit/entity/Item.java
-@@ -133,5 +133,24 @@ public interface Item extends Entity {
- * @param willAge True if the item should age
- */
- public void setWillAge(boolean willAge);
-+
-+ /**
-+ * Gets the health of item stack.
-+ * <p>
-+ * Currently the default max health is 5.
-+ *
-+ * @return the health
-+ */
-+ public int getHealth();
-+
-+ /**
-+ * Sets the health of the item stack. If the value is non-positive
-+ * the itemstack's normal "on destroy" functionality will be run.
-+ * <p>
-+ * Currently, the default max health is 5.
-+ *
-+ * @param health the health, a non-positive value will destroy the entity
-+ */
-+ public void setHealth(int health);
- // Paper end
- }