Class AlchemicalArrowExplosive


public class AlchemicalArrowExplosive
extends ConfigurableAlchemicalArrow
  • Field Details

    • PROPERTY_EXPLOSION_STRENGTH

      public static final ArrowProperty PROPERTY_EXPLOSION_STRENGTH
    • PROPERTY_FUSE_TICKS

      public static final ArrowProperty PROPERTY_FUSE_TICKS
    • PROPERTY_IGNITE_CREEPERS

      public static final ArrowProperty PROPERTY_IGNITE_CREEPERS
  • Constructor Details

    • AlchemicalArrowExplosive

      public AlchemicalArrowExplosive​(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
    • onHitEntity

      public void onHitEntity​(@NotNull @NotNull AlchemicalArrowEntity arrow, @NotNull @NotNull 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
    • createNewArrow

      public AlchemicalArrowEntity createNewArrow​(org.bukkit.entity.Arrow arrow)
      Description copied from class: AlchemicalArrow
      Create a new instance of an AlchemicalArrowEntity. If a custom AlchemicalArrowEntity implementation is used, this method must be overridden to return a custom instance of it. Under no circumstance should additional, non-arrow entity-related code be executed in an overridden implementation of this method. For additional logic, see AlchemicalArrow's various methods and override them where required
      Overrides:
      createNewArrow in class AlchemicalArrow
      Parameters:
      arrow - the Bukkit Arrow instance from which to create an AlchemicalArrowEntity
      Returns:
      the new AlchemicalArrowEntity instance of this implementation