blob: 25ae8323a24b35105f780e85276a7a7a47ed7c61 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
package org.bukkit.event.entity;
import org.bukkit.entity.Projectile;
import org.bukkit.event.HandlerList;
/**
* Called when a projectile hits an object
*/
public class ProjectileHitEvent extends EntityEvent {
private static final HandlerList handlers = new HandlerList();
public ProjectileHitEvent(final Projectile projectile) {
super(projectile);
}
@Override
public Projectile getEntity() {
return (Projectile) entity;
}
@Override
public HandlerList getHandlers() {
return handlers;
}
public static HandlerList getHandlerList() {
return handlers;
}
}
|