Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
EntityCombustByBlockEvent.java
1 package org.bukkit.event.entity;
2 
3 import org.bukkit.block.Block;
4 import org.bukkit.entity.Entity;
5 
6 /**
7  * Called when a block causes an entity to combust.
8  */
10  private final Block combuster;
11 
12  public EntityCombustByBlockEvent(final Block combuster, final Entity combustee, final int duration) {
13  super(combustee, duration);
14  this.combuster = combuster;
15  }
16 
17  /**
18  * The combuster can be lava or a block that is on fire.
19  * <p>
20  * WARNING: block may be null.
21  *
22  * @return the Block that set the combustee alight.
23  */
24  public Block getCombuster() {
25  return combuster;
26  }
27 }