Rebuild patches

This commit is contained in:
William Blake Galbreath
2020-02-12 21:31:30 -06:00
parent 093091c012
commit 023f7cec60
7 changed files with 11 additions and 11 deletions

View File

@@ -1,39 +0,0 @@
From 0712c2e0d32b466effab27107ba67554f7c20279 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 cf9b6252..34848e54 100644
--- a/src/main/java/org/bukkit/entity/LivingEntity.java
+++ b/src/main/java/org/bukkit/entity/LivingEntity.java
@@ -737,5 +737,22 @@ public interface LivingEntity extends Attributable, Damageable, ProjectileSource
* @param jumping Jump state
*/
void setJumping(boolean jumping);
+
+ /**
+ * 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