Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
EntityCombustByEntityEvent.java
1 package org.bukkit.event.entity;
2 
3 import org.bukkit.entity.Entity;
4 
5 /**
6  * Called when an entity causes another entity to combust.
7  */
9  private final Entity combuster;
10 
11  public EntityCombustByEntityEvent(final Entity combuster, final Entity combustee, final int duration) {
12  super(combustee, duration);
13  this.combuster = combuster;
14  }
15 
16  /**
17  * Get the entity that caused the combustion event.
18  *
19  * @return the Entity that set the combustee alight.
20  */
21  public Entity getCombuster() {
22  return combuster;
23  }
24 }