Package org.bukkit.entity
Interface Arrow
- All Superinterfaces:
CommandSender,Entity,Metadatable,Permissible,Projectile,ServerOperator
public interface Arrow extends Projectile
Represents an arrow.
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classArrow.Spigot -
Method Summary
Modifier and Type Method Description intgetKnockbackStrength()Gets the knockback strength for an arrow, which is theKnockBacklevel of the bow that shot it.booleanisCritical()Gets whether this arrow is critical.voidsetCritical(boolean critical)Sets whether or not this arrow should be critical.voidsetKnockbackStrength(int knockbackStrength)Sets the knockback strength for an arrow.Arrow.Spigotspigot()Methods inherited from interface org.bukkit.entity.Entity
eject, getCustomName, getEntityId, getFallDistance, getFireTicks, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getPassenger, getServer, getTicksLived, getType, getUniqueId, getVehicle, getVelocity, getWorld, isCustomNameVisible, isDead, isEmpty, isInsideVehicle, isOnGround, isValid, leaveVehicle, playEffect, remove, setCustomName, setCustomNameVisible, setFallDistance, setFireTicks, setLastDamageCause, setPassenger, setTicksLived, setVelocity, teleport, teleport, teleport, teleportMethods inherited from interface org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadataMethods inherited from interface org.bukkit.permissions.Permissible
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachmentMethods inherited from interface org.bukkit.entity.Projectile
_INVALID_getShooter, _INVALID_setShooter, doesBounce, getShooter, setBounce, setShooter
-
Method Details
-
getKnockbackStrength
int getKnockbackStrength()Gets the knockback strength for an arrow, which is theKnockBacklevel of the bow that shot it.- Returns:
- the knockback strength value
-
setKnockbackStrength
void setKnockbackStrength(int knockbackStrength)Sets the knockback strength for an arrow.- Parameters:
knockbackStrength- the knockback strength value
-
isCritical
boolean isCritical()Gets whether this arrow is critical.Critical arrows have increased damage and cause particle effects.
Critical arrows generally occur when a player fully draws a bow before firing.
- Returns:
- true if it is critical
-
setCritical
void setCritical(boolean critical)Sets whether or not this arrow should be critical.- Parameters:
critical- whether or not it should be critical
-
spigot
Arrow.Spigot spigot()
-