mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-24 09:16:06 +01:00
Add API to set Arrow pickup status
By: xGhOsTkiLLeRx <ratchet.player@gmx.de>
This commit is contained in:
parent
1732ba0fbf
commit
37102c4137
1 changed files with 32 additions and 0 deletions
|
@ -39,4 +39,36 @@ public interface Arrow extends Projectile {
|
||||||
* @param critical whether or not it should be critical
|
* @param critical whether or not it should be critical
|
||||||
*/
|
*/
|
||||||
public void setCritical(boolean critical);
|
public void setCritical(boolean critical);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the current pickup status of this arrow.
|
||||||
|
*
|
||||||
|
* @return the pickup status of this arrow.
|
||||||
|
*/
|
||||||
|
public PickupStatus getPickupStatus();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the current pickup status of this arrow.
|
||||||
|
*
|
||||||
|
* @param status new pickup status of this arrow.
|
||||||
|
*/
|
||||||
|
public void setPickupStatus(PickupStatus status);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Represents the pickup status of this arrow.
|
||||||
|
*/
|
||||||
|
public enum PickupStatus {
|
||||||
|
/**
|
||||||
|
* The arrow cannot be picked up.
|
||||||
|
*/
|
||||||
|
DISALLOWED,
|
||||||
|
/**
|
||||||
|
* The arrow can be picked up.
|
||||||
|
*/
|
||||||
|
ALLOWED,
|
||||||
|
/**
|
||||||
|
* The arrow can only be picked up by players in creative mode.
|
||||||
|
*/
|
||||||
|
CREATIVE_ONLY
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue