
org.bukkit.event.entity.EntityCombustByBlockEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of walk-server Show documentation
Show all versions of walk-server Show documentation
A spigot fork to kotlin structure and news.
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