mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-06 18:50:51 +01:00
SPIGOT-5782: Set Arrow Launched From Crossbow
By: md_5 <git@md-5.net>
This commit is contained in:
parent
09c7575189
commit
3fd0ae0a81
1 changed files with 14 additions and 0 deletions
|
@ -110,6 +110,20 @@ public interface AbstractArrow extends Projectile {
|
||||||
*/
|
*/
|
||||||
public void setPickupStatus(@NotNull PickupStatus status);
|
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.
|
* Represents the pickup status of this arrow.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue