Interface ProjectileCallback

All Known Implementing Classes:
ItemProjectileMechanic, ParticleProjectileMechanic

public interface ProjectileCallback
Callback interface for receiving when/what a specific projectile hits
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    callback(CustomProjectile projectile, org.bukkit.entity.LivingEntity hit)
    The callback method for when a projectile hits something or lands on the ground.
  • Method Details

    • callback

      void callback(CustomProjectile projectile, org.bukkit.entity.LivingEntity hit)
      The callback method for when a projectile hits something or lands on the ground. This is not called when the projectile expires. If the projectile landed on the ground without hitting anything, the "hit" living entity will be null.
      Parameters:
      projectile - projectile calling back for
      hit - the entity hit by the projectile, if any