Newer
Older
ultramine_bukkit / src / main / java / org / bukkit / event / entity / EntityCombustByEntityEvent.java
@vlad20012 vlad20012 on 24 Feb 2017 586 bytes initial
package org.bukkit.event.entity;

import org.bukkit.entity.Entity;

/**
 * Called when an entity causes another entity to combust.
 */
public class EntityCombustByEntityEvent extends EntityCombustEvent
{
	private final Entity combuster;

	public EntityCombustByEntityEvent(final Entity combuster, final Entity combustee, final int duration)
	{
		super(combustee, duration);
		this.combuster = combuster;
	}

	/**
	 * Get the entity that caused the combustion event.
	 *
	 * @return the Entity that set the combustee alight.
	 */
	public Entity getCombuster()
	{
		return combuster;
	}
}