Bukkit  1.4.7-R1.0
 All Classes Namespaces Files Functions Variables Enumerator Pages
ProjectileLaunchEvent.java
Go to the documentation of this file.
1 package org.bukkit.event.entity;
2 
3 import org.bukkit.entity.Entity;
4 import org.bukkit.entity.Projectile;
5 import org.bukkit.event.Cancellable;
6 import org.bukkit.event.HandlerList;
7 
11 public class ProjectileLaunchEvent extends EntityEvent implements Cancellable {
12  private static final HandlerList handlers = new HandlerList();
13  private boolean cancelled;
14 
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
34  return handlers;
35  }
36 
37  public static HandlerList getHandlerList() {
38  return handlers;
39  }
40 }