2021-06-11 14:02:28 +02:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: William Blake Galbreath <blake.galbreath@gmail.com>
|
|
|
|
Date: Sun, 23 Aug 2020 19:36:22 +0200
|
|
|
|
Subject: [PATCH] Add playPickupItemAnimation to LivingEntity
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java
|
2024-06-13 22:57:13 +02:00
|
|
|
index 1544242abfbd0f9accf5fe515a95d9ac0db50d4f..7c5f873ed2962244d8a17583b26c29b7caffe5d4 100644
|
2021-06-11 14:02:28 +02:00
|
|
|
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java
|
|
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java
|
2024-06-13 22:57:13 +02:00
|
|
|
@@ -979,4 +979,11 @@ public class CraftLivingEntity extends CraftEntity implements LivingEntity {
|
2021-06-11 14:02:28 +02:00
|
|
|
}
|
|
|
|
}
|
2024-04-06 21:53:39 +02:00
|
|
|
// Paper end - entity jump API
|
2021-06-11 14:02:28 +02:00
|
|
|
+
|
2024-04-06 21:53:39 +02:00
|
|
|
+ // Paper start - pickup animation API
|
2021-06-11 14:02:28 +02:00
|
|
|
+ @Override
|
2024-04-06 21:53:39 +02:00
|
|
|
+ public void playPickupItemAnimation(final org.bukkit.entity.Item item, final int quantity) {
|
|
|
|
+ this.getHandle().take(((CraftItem) item).getHandle(), quantity);
|
2021-06-11 14:02:28 +02:00
|
|
|
+ }
|
2024-04-06 21:53:39 +02:00
|
|
|
+ // Paper end - pickup animation API
|
2021-06-11 14:02:28 +02:00
|
|
|
}
|