Fork of Poseidon providing Bukkit #1060 to older Beta versions (b1.0-b1.7.3)
at develop 26 lines 623 B view raw
1package org.bukkit.event.entity; 2 3import org.bukkit.entity.Entity; 4import org.bukkit.event.Cancellable; 5 6/** 7 * Called when an entity combusts due to the sun. 8 * <p/> 9 * If an Entity Combust event is cancelled, the entity will not combust. 10 */ 11public class EntityCombustEvent extends EntityEvent implements Cancellable { 12 private boolean cancel; 13 14 public EntityCombustEvent(Entity what) { 15 super(Type.ENTITY_COMBUST, what); 16 this.cancel = false; 17 } 18 19 public boolean isCancelled() { 20 return cancel; 21 } 22 23 public void setCancelled(boolean cancel) { 24 this.cancel = cancel; 25 } 26}