Bukkit  1.4.7-R1.0
 All Classes Namespaces Files Functions Variables Enumerator Pages
EntityCombustEvent.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.event.Cancellable;
5 import org.bukkit.event.HandlerList;
6 
12 public class EntityCombustEvent extends EntityEvent implements Cancellable {
13  private static final HandlerList handlers = new HandlerList();
14  private int duration;
15  private boolean cancel;
16 
17  public EntityCombustEvent(final Entity combustee, final int duration) {
18  super(combustee);
19  this.duration = duration;
20  this.cancel = false;
21  }
22 
23  public boolean isCancelled() {
24  return cancel;
25  }
26 
27  public void setCancelled(boolean cancel) {
28  this.cancel = cancel;
29  }
30 
34  public int getDuration() {
35  return duration;
36  }
37 
45  public void setDuration(int duration) {
46  this.duration = duration;
47  }
48 
49  @Override
51  return handlers;
52  }
53 
54  public static HandlerList getHandlerList() {
55  return handlers;
56  }
57 }