public interface Arrow extends Projectile
Modifier and Type | Interface and Description |
---|---|
static class |
Arrow.PickupRule |
static class |
Arrow.Spigot |
Modifier and Type | Method and Description |
---|---|
int |
getKnockbackStrength()
Gets the knockback strength for an arrow, which is the
KnockBack level
of the bow that shot it. |
Arrow.PickupRule |
getPickupRule()
Gets the
Arrow.PickupRule for 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 |
setPickupRule(Arrow.PickupRule rule)
Set the rule for which players can pickup this arrow as an item.
|
Arrow.Spigot |
spigot() |
_INVALID_getShooter, _INVALID_setShooter, doesBounce, getShooter, setBounce, setShooter
eject, getCustomName, getEntityId, getFallDistance, getFireTicks, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getOrigin, getPassenger, getServer, getTicksLived, getType, getUniqueId, getVehicle, getVelocity, getWorld, isCustomNameVisible, isDead, isEmpty, isGlowing, isInsideVehicle, isInvulnerable, isOnGround, isSilent, isValid, leaveVehicle, playEffect, remove, setCustomName, setCustomNameVisible, setFallDistance, setFireTicks, setGlowing, setInvulnerable, setLastDamageCause, setPassenger, setSilent, setTicksLived, setVelocity, teleport, teleport, teleport, teleport
getMetadata, hasMetadata, removeMetadata, setMetadata
getName, sendMessage, sendMessage, sendMessage, sendMessage
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment
isOp, setOp
int 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.PickupRule getPickupRule()
Arrow.PickupRule
for this arrow.
This is generally Arrow.PickupRule.ALLOWED
only if the arrow was
not fired from a bow with the infinity enchantment.
void setPickupRule(Arrow.PickupRule rule)
rule
- The pickup ruleArrow.Spigot spigot()
Copyright © 2022. All rights reserved.