Bukkit/src/main/java/org/bukkit/event/entity/EntityCombustByEntityEvent.java
Andrew Ardill 4595a70056 Extend EntityCombustEvent to allow setting combustion duration.
Also extend with two new events that track the entity or block that caused
the combustion.
2011-11-29 20:56:08 +11:00

22 lines
583 B
Java

package org.bukkit.event.entity;
import org.bukkit.entity.Entity;
public class EntityCombustByEntityEvent extends EntityCombustEvent {
private Entity combuster;
public EntityCombustByEntityEvent(Entity combuster, Entity combustee, int duration) {
super(combustee, duration);
this.combuster = combuster;
}
/**
* The combuster can be a WeatherStorm a Blaze, or an Entity holding a FIRE_ASPECT enchanted item.
* @return the Entity that set the combustee alight.
*/
public Entity getCombuster() {
return combuster;
}
}