001 package org.bukkit.event.entity; 002 003 import org.bukkit.entity.Projectile; 004 import org.bukkit.event.HandlerList; 005 006 /** 007 * Called when a projectile hits an object 008 */ 009 public class ProjectileHitEvent extends EntityEvent { 010 private static final HandlerList handlers = new HandlerList(); 011 012 public ProjectileHitEvent(final Projectile projectile) { 013 super(projectile); 014 } 015 016 @Override 017 public Projectile getEntity() { 018 return (Projectile) entity; 019 } 020 021 @Override 022 public HandlerList getHandlers() { 023 return handlers; 024 } 025 026 public static HandlerList getHandlerList() { 027 return handlers; 028 } 029 030 }