SPIGOT-5782: Set Arrow Launched From Crossbow

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot 2020-06-24 10:05:28 +10:00
parent 09c7575189
commit 3fd0ae0a81

View File

@ -110,6 +110,20 @@ public interface AbstractArrow extends Projectile {
*/
public void setPickupStatus(@NotNull PickupStatus status);
/**
* Gets if this arrow was shot from a crossbow.
*
* @return if shot from a crossbow
*/
public boolean isShotFromCrossbow();
/**
* Sets if this arrow was shot from a crossbow.
*
* @param shotFromCrossbow if shot from a crossbow
*/
public void setShotFromCrossbow(boolean shotFromCrossbow);
/**
* Represents the pickup status of this arrow.
*/