CommandSender, Entity, Metadatable, Nameable, Permissible, Projectile, ServerOperatorSpectralArrow, TippedArrowpublic interface Arrow extends Projectile
| Modifier and Type | Interface | Description |
|---|---|---|
static class |
Arrow.PickupStatus |
Represents the pickup status of this arrow.
|
| Modifier and Type | Method | Description |
|---|---|---|
int |
getKnockbackStrength() |
Gets the knockback strength for an arrow, which is the
KnockBack level
of the bow that shot it. |
Arrow.PickupStatus |
getPickupStatus() |
Gets the current pickup status of this arrow.
|
boolean |
isCritical() |
Gets whether this arrow is critical.
|
void |
setCritical(boolean critical) |
Sets whether or not this arrow should be critical.
|
void |
setKnockbackStrength(int knockbackStrength) |
Sets the knockback strength for an arrow.
|
void |
setPickupStatus(Arrow.PickupStatus status) |
Sets the current pickup status of this arrow.
|
getName, sendMessage, sendMessageaddPassenger, addScoreboardTag, eject, getEntityId, getFallDistance, getFireTicks, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getPassenger, getPassengers, getPortalCooldown, getScoreboardTags, getServer, getTicksLived, getType, getUniqueId, getVehicle, getVelocity, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isGlowing, isInsideVehicle, isInvulnerable, isOnGround, isSilent, isValid, leaveVehicle, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPortalCooldown, setSilent, setTicksLived, setVelocity, teleport, teleport, teleport, teleportgetMetadata, hasMetadata, removeMetadata, setMetadatagetCustomName, setCustomNameaddAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment_INVALID_getShooter, _INVALID_setShooter, doesBounce, getShooter, setBounce, setShooterisOp, setOpint getKnockbackStrength()
KnockBack level
of the bow that shot it.void setKnockbackStrength(int knockbackStrength)
knockbackStrength - the knockback strength valueboolean isCritical()
Critical arrows have increased damage and cause particle effects.
Critical arrows generally occur when a player fully draws a bow before firing.
void setCritical(boolean critical)
critical - whether or not it should be criticalArrow.PickupStatus getPickupStatus()
void setPickupStatus(Arrow.PickupStatus status)
status - new pickup status of this arrow.