mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-05 16:49:39 +00:00
SPIGOT-7601: Add AbstractArrow#getItem
This commit is contained in:
parent
be8261ca6c
commit
c4fdadb0c9
1 changed files with 19 additions and 0 deletions
|
@ -1,6 +1,8 @@
|
||||||
package org.bukkit.entity;
|
package org.bukkit.entity;
|
||||||
|
|
||||||
import org.bukkit.block.Block;
|
import org.bukkit.block.Block;
|
||||||
|
import org.bukkit.inventory.ItemStack;
|
||||||
|
import org.jetbrains.annotations.ApiStatus;
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
import org.jetbrains.annotations.Nullable;
|
import org.jetbrains.annotations.Nullable;
|
||||||
|
|
||||||
|
@ -124,6 +126,23 @@ public interface AbstractArrow extends Projectile {
|
||||||
*/
|
*/
|
||||||
public void setShotFromCrossbow(boolean shotFromCrossbow);
|
public void setShotFromCrossbow(boolean shotFromCrossbow);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the ItemStack which will be picked up from this arrow.
|
||||||
|
*
|
||||||
|
* @return The picked up ItemStack
|
||||||
|
*/
|
||||||
|
@NotNull
|
||||||
|
@ApiStatus.Experimental
|
||||||
|
public ItemStack getItem();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the ItemStack which will be picked up from this arrow.
|
||||||
|
*
|
||||||
|
* @param item ItemStack set to be picked up
|
||||||
|
*/
|
||||||
|
@ApiStatus.Experimental
|
||||||
|
public void setItem(@NotNull ItemStack item);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents the pickup status of this arrow.
|
* Represents the pickup status of this arrow.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Reference in a new issue