org.bukkit.entity
Interface Arrow

All Superinterfaces:
Entity, Metadatable, Projectile

public interface Arrow
extends Projectile

Represents an arrow.


Method Summary
 int getKnockbackStrength()
          Gets the knockback strength for an arrow, which is the KnockBack level of the bow that shot it.
 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.
 
Methods inherited from interface org.bukkit.entity.Projectile
_INVALID_getShooter, _INVALID_setShooter, doesBounce, getShooter, setBounce, setShooter
 
Methods inherited from interface org.bukkit.entity.Entity
eject, getEntityId, getFallDistance, getFireTicks, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getPassenger, getServer, getTicksLived, getType, getUniqueId, getVehicle, getVelocity, getWorld, isDead, isEmpty, isInsideVehicle, isOnGround, isValid, leaveVehicle, playEffect, remove, setFallDistance, setFireTicks, setLastDamageCause, setPassenger, setTicksLived, setVelocity, teleport, teleport, teleport, teleport
 
Methods inherited from interface org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadata
 

Method Detail

getKnockbackStrength

int getKnockbackStrength()
Gets the knockback strength for an arrow, which is the KnockBack level 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


Copyright © 2014. All rights reserved.