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

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

There is a newer version: 2.4.0
Show newest version
package org.bukkit.event.entity;

import org.bukkit.block.Block;
import org.bukkit.entity.Entity;

/**
 * Called when a block causes an entity to combust.
 */
public class EntityCombustByBlockEvent extends EntityCombustEvent {
  private final Block combuster;

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

  /**
   * The combuster can be lava or a block that is on fire.
   * 

* WARNING: block may be null. * * @return the Block that set the combustee alight. */ public Block getCombuster() { return combuster; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy