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 TypeMethodDescriptionvoid
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
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 forhit
- the entity hit by the projectile, if any
-