Files
Paper/paper-api/src/main/java/org/bukkit/entity/Explosive.java
Bukkit/Spigot cd27f1b0c7 Update to Minecraft 1.21.2
By: md_5 <git@md-5.net>
2024-10-23 02:15:00 +11:00

40 lines
1.0 KiB
Java

package org.bukkit.entity;
/**
* A representation of an explosive entity
*/
public interface Explosive extends Entity {
/**
* Set the radius affected by this explosive's explosion.
* <br>
* This is the base yield, which may be affected by other entity attributes.
*
* @param yield The explosive yield
*/
public void setYield(float yield);
/**
* Return the radius or yield of this explosive's explosion.
* <br>
* This is the base yield, which may be affected by other entity attributes.
*
* @return the radius of blocks affected
*/
public float getYield();
/**
* Set whether or not this explosive's explosion causes fire
*
* @param isIncendiary Whether it should cause fire
*/
public void setIsIncendiary(boolean isIncendiary);
/**
* Return whether or not this explosive creates a fire when exploding
*
* @return true if the explosive creates fire, false otherwise
*/
public boolean isIncendiary();
}