aboutsummaryrefslogtreecommitdiffhomepage
path: root/Spigot-API-Patches-Unmapped/0052-Item-canEntityPickup.patch
diff options
context:
space:
mode:
Diffstat (limited to 'Spigot-API-Patches-Unmapped/0052-Item-canEntityPickup.patch')
-rw-r--r--Spigot-API-Patches-Unmapped/0052-Item-canEntityPickup.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/Spigot-API-Patches-Unmapped/0052-Item-canEntityPickup.patch b/Spigot-API-Patches-Unmapped/0052-Item-canEntityPickup.patch
new file mode 100644
index 0000000000..27894bda93
--- /dev/null
+++ b/Spigot-API-Patches-Unmapped/0052-Item-canEntityPickup.patch
@@ -0,0 +1,31 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: BillyGalbreath <[email protected]>
+Date: Fri, 5 May 2017 03:57:08 -0500
+Subject: [PATCH] Item#canEntityPickup
+
+
+diff --git a/src/main/java/org/bukkit/entity/Item.java b/src/main/java/org/bukkit/entity/Item.java
+index 3f2736fbddd8661e764bc2f8d0499bd13ca91df5..c404a5b8efea7c780db5ddae19456753808abb3d 100644
+--- a/src/main/java/org/bukkit/entity/Item.java
++++ b/src/main/java/org/bukkit/entity/Item.java
+@@ -75,4 +75,20 @@ public interface Item extends Entity {
+ */
+ @Nullable
+ public UUID getThrower();
++
++ // Paper Start
++ /**
++ * Gets if non-player entities can pick this Item up
++ *
++ * @return True if non-player entities can pickup
++ */
++ public boolean canMobPickup();
++
++ /**
++ * Sets if non-player entities can pick this Item up
++ *
++ * @param canMobPickup True to allow non-player entity pickup
++ */
++ public void setCanMobPickup(boolean canMobPickup);
++ // Paper end
+ }