Class AlchemicalArrowFire


public class AlchemicalArrowFire
extends ConfigurableAlchemicalArrow
  • Field Details

    • PROPERTY_EXTINGUISHABLE

      public static final ArrowProperty PROPERTY_EXTINGUISHABLE
    • PROPERTY_FIRE_TICKS_MIN

      public static final ArrowProperty PROPERTY_FIRE_TICKS_MIN
    • PROPERTY_FIRE_TICKS_MAX

      public static final ArrowProperty PROPERTY_FIRE_TICKS_MAX
    • PROPERTY_TICKS_TO_MELT

      public static final ArrowProperty PROPERTY_TICKS_TO_MELT
  • Constructor Details

  • 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
    • createNewArrow

      @NotNull public @NotNull AlchemicalArrowEntity createNewArrow​(@NotNull @NotNull 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