Class AlchemicalArrowFrost


public class AlchemicalArrowFrost
extends ConfigurableAlchemicalArrow
  • Field Details

    • PROPERTY_WATER_FREEZE_RADIUS

      public static final ArrowProperty PROPERTY_WATER_FREEZE_RADIUS
  • Constructor Details

    • AlchemicalArrowFrost

      public AlchemicalArrowFrost​(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
    • onHitBlock

      public void onHitBlock​(AlchemicalArrowEntity arrow, org.bukkit.block.Block block)
      Description copied from class: AlchemicalArrow
      Called when the arrow hits a solid block
      Overrides:
      onHitBlock in class AlchemicalArrow
      Parameters:
      arrow - the alchemical arrow entity instance
      block - the block on which the arrow landed