mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-06 07:02:18 -07:00
Update AbstractArrow item method implementations for 1.20.6 (#10885)
This commit is contained in:
@@ -25,10 +25,10 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
* Sets the ItemStack which will be picked up from this arrow.
|
||||
*
|
||||
* @param item ItemStack set to be picked up
|
||||
+ * @deprecated until 1.20.5 when the behavior is more defined
|
||||
+ * @deprecated use {@link #getItemStack()}
|
||||
*/
|
||||
@ApiStatus.Experimental
|
||||
+ @Deprecated // Paper - remove in 1.20.5
|
||||
+ @Deprecated(forRemoval = true, since = "1.20.4") // Paper
|
||||
public void setItem(@NotNull ItemStack item);
|
||||
|
||||
/**
|
||||
@@ -39,12 +39,20 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+
|
||||
+ // Paper start - more projectile API
|
||||
+ /**
|
||||
+ * Gets the ItemStack for this arrow.
|
||||
+ * Gets the {@link ItemStack} for this arrow. This stack is used
|
||||
+ * for both visuals on the arrow and the stack that could be picked up.
|
||||
+ *
|
||||
+ * @return The ItemStack, as if a player picked up the arrow
|
||||
+ */
|
||||
+ @NotNull
|
||||
+ org.bukkit.inventory.ItemStack getItemStack();
|
||||
+ @NotNull ItemStack getItemStack();
|
||||
+
|
||||
+ /**
|
||||
+ * Sets the {@link ItemStack} for this arrow. This stack is used for both
|
||||
+ * visuals on the arrow and the stack that could be picked up.
|
||||
+ *
|
||||
+ * @param stack the arrow stack
|
||||
+ */
|
||||
+ void setItemStack(@NotNull ItemStack stack);
|
||||
+
|
||||
+ /**
|
||||
+ * Sets the amount of ticks this arrow has been alive in the world
|
||||
|
Reference in New Issue
Block a user