All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bukkit.event.entity.EntityCombustByEntityEvent Maven / Gradle / Ivy

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;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy