001 package org.bukkit.entity; 002 003 /** 004 * A representation of an explosive entity 005 */ 006 public interface Explosive extends Entity { 007 008 /** 009 * Set the radius affected by this explosive's explosion 010 * 011 * @param yield The explosive yield 012 */ 013 public void setYield(float yield); 014 015 /** 016 * Return the radius or yield of this explosive's explosion 017 * 018 * @return the radius of blocks affected 019 */ 020 public float getYield(); 021 022 /** 023 * Set whether or not this explosive's explosion causes fire 024 * 025 * @param isIncendiary Whether it should cause fire 026 */ 027 public void setIsIncendiary(boolean isIncendiary); 028 029 /** 030 * Return whether or not this explosive creates a fire when exploding 031 * 032 * @return true if the explosive creates fire, false otherwise 033 */ 034 public boolean isIncendiary(); 035 }