Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
ProjectileLaunchEvent.java
1 package org.bukkit.event.entity;
2 
3 import org.bukkit.entity.Entity;
7 
8 /**
9  * Called when a projectile is launched.
10  */
11 public class ProjectileLaunchEvent extends EntityEvent implements Cancellable {
12  private static final HandlerList handlers = new HandlerList();
13  private boolean cancelled;
14 
15  public ProjectileLaunchEvent(Entity what) {
16  super(what);
17  }
18 
19  public boolean isCancelled() {
20  return cancelled;
21  }
22 
23  public void setCancelled(boolean cancel) {
24  cancelled = cancel;
25  }
26 
27  @Override
28  public Projectile getEntity() {
29  return (Projectile) entity;
30  }
31 
32  @Override
33  public HandlerList getHandlers() {
34  return handlers;
35  }
36 
37  public static HandlerList getHandlerList() {
38  return handlers;
39  }
40 }