mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-18 17:07:43 +01:00
Upstream has released updates that appears to apply and compile correctly Paper Changes: b75eeca0 Boost light task priority to ensure it doesnt hold up chunk loads 3d2bc848 Ensure VillagerTrades doesn't load async - fixes #3495 e470f1ef Add more information to Timing Reports f4a47db6 Improve Thread Pool usage to allow single threads for single cpu servers a4fe910f Fix sounds when using worldedit regen command 70ad51a8 Updated Upstream (Bukkit/CraftBukkit) d7cfa4fa Improve legacy format serialization more
40 lines
1.3 KiB
Diff
40 lines
1.3 KiB
Diff
From 1e19760c6229130f4ac3251e96812a7b48f45c2f Mon Sep 17 00:00:00 2001
|
|
From: William Blake Galbreath <blake.galbreath@gmail.com>
|
|
Date: Sat, 19 Oct 2019 02:25:05 -0500
|
|
Subject: [PATCH] Add playPickupItemAnimation to LivingEntity
|
|
|
|
---
|
|
.../java/org/bukkit/entity/LivingEntity.java | 17 +++++++++++++++++
|
|
1 file changed, 17 insertions(+)
|
|
|
|
diff --git a/src/main/java/org/bukkit/entity/LivingEntity.java b/src/main/java/org/bukkit/entity/LivingEntity.java
|
|
index 1192fef87..2a713adb5 100644
|
|
--- a/src/main/java/org/bukkit/entity/LivingEntity.java
|
|
+++ b/src/main/java/org/bukkit/entity/LivingEntity.java
|
|
@@ -747,5 +747,22 @@ public interface LivingEntity extends Attributable, Damageable, ProjectileSource
|
|
* @param safeFallDistance Safe fall distance
|
|
*/
|
|
void setSafeFallDistance(float safeFallDistance);
|
|
+
|
|
+ /**
|
|
+ * Plays pickup item animation
|
|
+ *
|
|
+ * @param item Item to pickup
|
|
+ */
|
|
+ default void playPickupItemAnimation(@NotNull Item item) {
|
|
+ playPickupItemAnimation(item, item.getItemStack().getAmount());
|
|
+ }
|
|
+
|
|
+ /**
|
|
+ * Plays pickup item animation
|
|
+ *
|
|
+ * @param item Item to pickup
|
|
+ * @param quantity Quantity of item
|
|
+ */
|
|
+ void playPickupItemAnimation(@NotNull Item item, int quantity);
|
|
// Purpur end
|
|
}
|
|
--
|
|
2.24.0
|
|
|