diff options
author | xGhOsTkiLLeRx <ratchet.player@gmx.de> | 2017-01-16 23:51:27 +0100 |
---|---|---|
committer | md_5 <git@md-5.net> | 2017-01-18 09:56:24 +1100 |
commit | 4bef447a073792a0858dc49e33593acb1c1948f5 (patch) | |
tree | a6a2717e53b55037f86fa47447cbed145f055613 /src/main/java/org | |
parent | 39c5d6b4a11b3e7c2eeb12a8bae5495f95ccc247 (diff) | |
download | bukkit-4bef447a073792a0858dc49e33593acb1c1948f5.tar bukkit-4bef447a073792a0858dc49e33593acb1c1948f5.tar.gz bukkit-4bef447a073792a0858dc49e33593acb1c1948f5.tar.lz bukkit-4bef447a073792a0858dc49e33593acb1c1948f5.tar.xz bukkit-4bef447a073792a0858dc49e33593acb1c1948f5.zip |
Add API to set Arrow pickup status
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/bukkit/entity/Arrow.java | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/entity/Arrow.java b/src/main/java/org/bukkit/entity/Arrow.java index e49eef07..795e40de 100644 --- a/src/main/java/org/bukkit/entity/Arrow.java +++ b/src/main/java/org/bukkit/entity/Arrow.java @@ -39,4 +39,36 @@ public interface Arrow extends Projectile { * @param critical whether or not it should be 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 + } } |