public interface TippedArrow extends Arrow
Arrow.Spigot| Modifier and Type | Method and Description |
|---|---|
boolean |
addCustomEffect(PotionEffect effect,
boolean overwrite)
Adds a custom potion effect to this arrow.
|
void |
clearCustomEffects()
Removes all custom potion effects from this arrow.
|
PotionData |
getBasePotionData()
Returns the potion data about the base potion
|
List<PotionEffect> |
getCustomEffects()
Gets an immutable list containing all custom potion effects applied to
this arrow.
|
boolean |
hasCustomEffect(PotionEffectType type)
Checks for a specific custom potion effect type on this arrow.
|
boolean |
hasCustomEffects()
Checks for the presence of custom potion effects.
|
boolean |
removeCustomEffect(PotionEffectType type)
Removes a custom potion effect from this arrow.
|
void |
setBasePotionData(PotionData data)
Sets the underlying potion data
|
getKnockbackStrength, isCritical, setCritical, setKnockbackStrength, spigot_INVALID_getShooter, _INVALID_setShooter, doesBounce, getShooter, setBounce, setShootereject, getCustomName, getEntityId, getFallDistance, getFireTicks, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, 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, teleportgetMetadata, hasMetadata, removeMetadata, setMetadatagetName, sendMessage, sendMessageaddAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachmentisOp, setOpvoid setBasePotionData(PotionData data)
data - PotionData to set the base potion state toPotionData getBasePotionData()
boolean hasCustomEffects()
List<PotionEffect> getCustomEffects()
Plugins should check that hasCustomEffects() returns true before calling this method.
boolean addCustomEffect(PotionEffect effect, boolean overwrite)
effect - the potion effect to addoverwrite - true if any existing effect of the same type should be
overwrittenboolean removeCustomEffect(PotionEffectType type)
type - the potion effect type to removeIllegalArgumentException - if this operation would leave the Arrow
in a state with no Custom Effects and PotionType.UNCRAFTABLEboolean hasCustomEffect(PotionEffectType type)
type - the potion effect type to check forvoid clearCustomEffects()
IllegalArgumentException - if this operation would leave the Arrow
in a state with no Custom Effects and PotionType.UNCRAFTABLECopyright © 2016. All rights reserved.