Commits
Parker Hawke authored and md_5 committed 222f7d167f7
1 1 | package org.bukkit.entity; |
2 2 | |
3 + | import org.bukkit.block.Block; |
4 + | |
3 5 | /** |
4 6 | * Represents an arrow. |
5 7 | */ |
6 8 | public interface Arrow extends Projectile { |
7 9 | |
8 10 | /** |
9 11 | * Gets the knockback strength for an arrow, which is the |
10 12 | * {@link org.bukkit.enchantments.Enchantment#KNOCKBACK KnockBack} level |
11 13 | * of the bow that shot it. |
12 14 | * |
33 35 | */ |
34 36 | public boolean isCritical(); |
35 37 | |
36 38 | /** |
37 39 | * Sets whether or not this arrow should be critical. |
38 40 | * |
39 41 | * @param critical whether or not it should be critical |
40 42 | */ |
41 43 | public void setCritical(boolean critical); |
42 44 | |
45 + | /** |
46 + | * Gets whether this arrow is in a block or not. |
47 + | * <p> |
48 + | * Arrows in a block are motionless and may be picked up by players. |
49 + | * |
50 + | * @return true if in a block |
51 + | */ |
52 + | public boolean isInBlock(); |
53 + | |
54 + | /** |
55 + | * Gets the block to which this arrow is attached. |
56 + | * |
57 + | * @return the attached block or null if not attached |
58 + | */ |
59 + | public Block getAttachedBlock(); |
60 + | |
43 61 | /** |
44 62 | * Gets the current pickup status of this arrow. |
45 63 | * |
46 64 | * @return the pickup status of this arrow. |
47 65 | */ |
48 66 | public PickupStatus getPickupStatus(); |
49 67 | |
50 68 | /** |
51 69 | * Sets the current pickup status of this arrow. |
52 70 | * |