From a7e8ccc630618523301f4548b649cd0c0c041c55 Mon Sep 17 00:00:00 2001 From: William Blake Galbreath Date: Sun, 23 Aug 2020 19:36:22 +0200 Subject: [PATCH] Add playPickupItemAnimation to LivingEntity --- .../org/bukkit/craftbukkit/entity/CraftLivingEntity.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java index 1873b5c22d..0aa3fd9dce 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java @@ -1009,4 +1009,11 @@ public class CraftLivingEntity extends CraftEntity implements LivingEntity { } } // Paper end - entity jump API + + // Paper start - pickup animation API + @Override + public void playPickupItemAnimation(final org.bukkit.entity.Item item, final int quantity) { + this.getHandle().take(((CraftItem) item).getHandle(), quantity); + } + // Paper end - pickup animation API }