mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-17 16:37:43 +01:00
Upstream has released updates that appears to apply and compile correctly Paper Changes: fcbeac8a [CI-SKIP] Readme update (#3702) 824f8086 Bandaid italic legacy serialization #3757 (#3760) Tuinity Changes: 9f21359: Re-add optimise collision checking in player move packet handling 1152054: Revert player move packet optimisation ef0a6c4: Optimise collision checking in player move packets
34 lines
1.1 KiB
Diff
34 lines
1.1 KiB
Diff
From 0000000000000000000000000000000000000000 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] LivingEntity#playPickupItemAnimation
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/entity/LivingEntity.java b/src/main/java/org/bukkit/entity/LivingEntity.java
|
|
index 5b688cd0..a0db7694 100644
|
|
--- a/src/main/java/org/bukkit/entity/LivingEntity.java
|
|
+++ b/src/main/java/org/bukkit/entity/LivingEntity.java
|
|
@@ -768,5 +768,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
|
|
}
|