mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-14 11:45:52 -07:00
@@ -1,5 +1,7 @@
|
|||||||
package org.bukkit.entity;
|
package org.bukkit.entity;
|
||||||
|
|
||||||
|
import org.bukkit.block.Block;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents an arrow.
|
* Represents an arrow.
|
||||||
*/
|
*/
|
||||||
@@ -40,6 +42,22 @@ public interface Arrow extends Projectile {
|
|||||||
*/
|
*/
|
||||||
public void setCritical(boolean critical);
|
public void setCritical(boolean critical);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets whether this arrow is in a block or not.
|
||||||
|
* <p>
|
||||||
|
* Arrows in a block are motionless and may be picked up by players.
|
||||||
|
*
|
||||||
|
* @return true if in a block
|
||||||
|
*/
|
||||||
|
public boolean isInBlock();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the block to which this arrow is attached.
|
||||||
|
*
|
||||||
|
* @return the attached block or null if not attached
|
||||||
|
*/
|
||||||
|
public Block getAttachedBlock();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the current pickup status of this arrow.
|
* Gets the current pickup status of this arrow.
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user