mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-25 02:17:35 +01:00
ec9fa36908
Upstream has released updates that appears to apply and compile correctly. This update has not been tested by PaperMC and as with ANY update, please do your own testing Bukkit Changes: 149527f7 SPIGOT-5782: Set Arrow Launched From Crossbow CraftBukkit Changes:be6aaf04
SPIGOT-5782: Set Arrow Launched From Crossbow833da9c4
SPIGOT-5799: InventoryCloseEvent fires after PlayerQuitEvent26c0084f
SPIGOT-5675, SPIGOT-5798, MC-149563: Fix tracking of entities across dimensions7f3e7c3f
SPIGOT-5797: Zombie(Villagers) Instant Convert based on their lifetime
26 lines
911 B
Diff
26 lines
911 B
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Nesaak <52047222+Nesaak@users.noreply.github.com>
|
|
Date: Fri, 22 May 2020 13:35:21 -0400
|
|
Subject: [PATCH] Expose Arrow getItemStack
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/entity/AbstractArrow.java b/src/main/java/org/bukkit/entity/AbstractArrow.java
|
|
index e8e56e89e32d84af0639fe2e9b0eeabd747b6007..b1d8007eed489aa061c1a6813bcdafc101231e56 100644
|
|
--- a/src/main/java/org/bukkit/entity/AbstractArrow.java
|
|
+++ b/src/main/java/org/bukkit/entity/AbstractArrow.java
|
|
@@ -143,6 +143,14 @@ public interface AbstractArrow extends Projectile {
|
|
}
|
|
|
|
// Paper start
|
|
+ /**
|
|
+ * Gets the ItemStack for this arrow.
|
|
+ *
|
|
+ * @return The ItemStack, as if a player picked up the arrow
|
|
+ */
|
|
+ @NotNull
|
|
+ org.bukkit.inventory.ItemStack getItemStack();
|
|
+
|
|
/**
|
|
* Gets the {@link PickupRule} for this arrow.
|
|
*
|