remove api that was scheduled for removal
This commit is contained in:
parent
188cff20c7
commit
ffe310a8e1
1196 changed files with 442 additions and 1665 deletions
|
@ -0,0 +1,40 @@
|
|||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: William Blake Galbreath <blake.galbreath@gmail.com>
|
||||
Date: Sun, 23 Aug 2020 19:36:08 +0200
|
||||
Subject: [PATCH] Add playPickupItemAnimation to LivingEntity
|
||||
|
||||
|
||||
diff --git a/src/main/java/org/bukkit/entity/LivingEntity.java b/src/main/java/org/bukkit/entity/LivingEntity.java
|
||||
index fdb985763d0a7b0a31ad938616e11ef244f63062..d87c49550e697ad545742baed40068623e83bf0b 100644
|
||||
--- a/src/main/java/org/bukkit/entity/LivingEntity.java
|
||||
+++ b/src/main/java/org/bukkit/entity/LivingEntity.java
|
||||
@@ -1171,4 +1171,29 @@ public interface LivingEntity extends Attributable, Damageable, ProjectileSource
|
||||
*/
|
||||
void setJumping(boolean jumping);
|
||||
// Paper end - entity jump API
|
||||
+
|
||||
+ // Paper start - pickup animation API
|
||||
+ /**
|
||||
+ * Plays pickup item animation towards this entity.
|
||||
+ * <p>
|
||||
+ * <b>This will remove the item on the client.</b>
|
||||
+ * <p>
|
||||
+ * Quantity is inferred to be that of the {@link Item}.
|
||||
+ *
|
||||
+ * @param item item to pickup
|
||||
+ */
|
||||
+ default void playPickupItemAnimation(@NotNull Item item) {
|
||||
+ playPickupItemAnimation(item, item.getItemStack().getAmount());
|
||||
+ }
|
||||
+
|
||||
+ /**
|
||||
+ * Plays pickup item animation towards this entity.
|
||||
+ * <p>
|
||||
+ * <b>This will remove the item on the client.</b>
|
||||
+ *
|
||||
+ * @param item item to pickup
|
||||
+ * @param quantity quantity of item
|
||||
+ */
|
||||
+ void playPickupItemAnimation(@NotNull Item item, int quantity);
|
||||
+ // Paper end - pickup animation API
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue