From 13945b768759978501e6b53d7145803f544bc021 Mon Sep 17 00:00:00 2001 From: Shane Bee Date: Sun, 16 Aug 2020 09:32:47 +1000 Subject: [PATCH] #725: HumanEntity - add a method to make the entity drop the item they're holding --- .../java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java index c187670228..1f1f53bfdf 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java @@ -570,4 +570,9 @@ public class CraftHumanEntity extends CraftLivingEntity implements HumanEntity { entity.remove(); } } + + @Override + public boolean dropItem(boolean dropAll) { + return getHandle().dropItem(dropAll); + } }