Added the concept of an Explosive.

By: sunkid <sunkid@iminurnetz.com>
This commit is contained in:
Bukkit/Spigot
2011-06-14 10:55:47 -07:00
parent 05163fbadc
commit 8e7ef46f6f
4 changed files with 49 additions and 10 deletions

View File

@@ -0,0 +1,30 @@
package org.bukkit.entity;
/**
* A representation of an explosive entity
*/
public interface Explosive extends Entity {
/**
* Set the radius affected by this explosive's explosion
* @param yield
*/
public void setYield(float yield);
/**
* Return the radius or yield of this explosive's explosion
* @return the radius of blocks affected
*/
public float getYield();
/**
* Set whether or not this explosive's explosion causes fire
* @param isIncendiary
*/
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();
}