SPIGOT-5782: Set Arrow Launched From Crossbow

This commit is contained in:
md_5 2020-06-24 10:05:28 +10:00
parent b2f1908c59
commit 149527f7b1

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.
*/