Bukkit/src/main/java/org/bukkit/event/entity/EntityCombustByBlockEvent.java
2012-01-15 14:37:43 +01:00

27 lines
649 B
Java

package org.bukkit.event.entity;
import org.bukkit.block.Block;
import org.bukkit.entity.Entity;
@SuppressWarnings("serial")
public class EntityCombustByBlockEvent extends EntityCombustEvent {
private Block combuster;
public EntityCombustByBlockEvent(Block combuster, Entity combustee, int duration) {
super(combustee, duration);
this.combuster = combuster;
}
/**
* The combuster can be lava or a block that is on fire.
* <p />
* WARNING: block may be null.
*
* @return the Block that set the combustee alight.
*/
public Block getCombuster() {
return combuster;
}
}