001    package org.bukkit.event.entity;
002    
003    import org.bukkit.entity.Entity;
004    
005    /**
006     * Called when an entity causes another entity to combust.
007     */
008    public class EntityCombustByEntityEvent extends EntityCombustEvent {
009        private final Entity combuster;
010    
011        public EntityCombustByEntityEvent(final Entity combuster, final Entity combustee, final int duration) {
012            super(combustee, duration);
013            this.combuster = combuster;
014        }
015    
016        /**
017         * Get the entity that caused the combustion event.
018         *
019         * @return the Entity that set the combustee alight.
020         */
021        public Entity getCombuster() {
022            return combuster;
023        }
024    }