All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bukkit.entity.Arrow Maven / Gradle / Ivy

There is a newer version: 2.4.0
Show newest version
package org.bukkit.entity;

/**
 * Represents an arrow.
 */
public interface Arrow extends Projectile {

  /**
   * Gets the knockback strength for an arrow, which is the
   * {@link org.bukkit.enchantments.Enchantment#KNOCKBACK KnockBack} level
   * of the bow that shot it.
   *
   * @return the knockback strength value
   */
  int getKnockbackStrength();

  /**
   * Sets the knockback strength for an arrow.
   *
   * @param knockbackStrength the knockback strength value
   */
  void setKnockbackStrength(int knockbackStrength);

  /**
   * 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. * * @return true if it is critical */ boolean isCritical(); /** * Sets whether or not this arrow should be critical. * * @param critical whether or not it should be critical */ void setCritical(boolean critical); Spigot spigot(); class Spigot extends Entity.Spigot { public double getDamage() { throw new UnsupportedOperationException("Not supported yet."); } public void setDamage(double damage) { throw new UnsupportedOperationException("Not supported yet."); } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy