Add playPickupItemAnimation to LivingEntity

This commit is contained in:
William Blake Galbreath 2020-08-23 19:36:22 +02:00
parent 0ef48f1dd1
commit a7e8ccc630

View file

@ -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
}