Class AlchemicalArrowLight


public class AlchemicalArrowLight
extends ConfigurableAlchemicalArrow
  • Field Details

    • PROPERTY_DISORIENT

      public static final ArrowProperty PROPERTY_DISORIENT
    • PROPERTY_LIGHTNING_CHANCE

      public static final ArrowProperty PROPERTY_LIGHTNING_CHANCE
  • Constructor Details

    • AlchemicalArrowLight

      public AlchemicalArrowLight​(AlchemicalArrows plugin)
  • Method Details

    • tick

      public void tick​(AlchemicalArrowEntity arrow, org.bukkit.Location location)
      Description copied from class: AlchemicalArrow
      Called 20 times every second. This method is intended for displaying particles around the arrow, performing tasks whilst the arrow is still in the world, etc.
      Overrides:
      tick in class AlchemicalArrow
      Parameters:
      arrow - the alchemical arrow entity instance
      location - the arrow's current location at this tick
    • onHitPlayer

      public void onHitPlayer​(AlchemicalArrowEntity arrow, org.bukkit.entity.Player player)
      Description copied from class: AlchemicalArrow
      Called when the arrow hits a player
      Overrides:
      onHitPlayer in class AlchemicalArrow
      Parameters:
      arrow - the alchemical arrow entity instance
      player - the player damaged by the arrow
    • onHitEntity

      public void onHitEntity​(AlchemicalArrowEntity arrow, org.bukkit.entity.Entity entity)
      Description copied from class: AlchemicalArrow
      Called when the arrow hits an entity (this excludes Players. For Players, see AlchemicalArrow.onHitPlayer(AlchemicalArrowEntity, Player))
      Overrides:
      onHitEntity in class AlchemicalArrow
      Parameters:
      arrow - the alchemical arrow entity instance
      entity - the entity damaged by the arrow