diff options
author | Nesaak <[email protected]> | 2020-05-22 13:56:24 -0400 |
---|---|---|
committer | Aikar <[email protected]> | 2020-06-20 16:34:06 -0400 |
commit | b6a25a535679fb0911e6d570453ee15f785451cf (patch) | |
tree | 8a4b013620c180421972b42afc5c6e3cb3fcff7a /Spigot-API-Patches/0211-Expose-Arrow-getItemStack.patch | |
parent | 246af15ddcca03cdad00956819ec3e14983a2910 (diff) | |
download | Paper-b6a25a535679fb0911e6d570453ee15f785451cf.tar.gz Paper-b6a25a535679fb0911e6d570453ee15f785451cf.zip |
Expose getItemStack in Arrows
Diffstat (limited to 'Spigot-API-Patches/0211-Expose-Arrow-getItemStack.patch')
-rw-r--r-- | Spigot-API-Patches/0211-Expose-Arrow-getItemStack.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Spigot-API-Patches/0211-Expose-Arrow-getItemStack.patch b/Spigot-API-Patches/0211-Expose-Arrow-getItemStack.patch new file mode 100644 index 0000000000..8c92df614b --- /dev/null +++ b/Spigot-API-Patches/0211-Expose-Arrow-getItemStack.patch @@ -0,0 +1,25 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Nesaak <[email protected]> +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 b2bf62a50177e612369993f8ed340d456c3c2fc8..6cb38d412c89a85ef6c1d98f32338d22bd2c2795 100644 +--- a/src/main/java/org/bukkit/entity/AbstractArrow.java ++++ b/src/main/java/org/bukkit/entity/AbstractArrow.java +@@ -129,6 +129,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. + * |