DetonatorExplosionEvent

The Detonator Explosion Event is an event called when a projectile shot with Detonator hits a block or entity other than a Creeper and blows up.

Description
The DetonatorExplosionEvent is a class that adds five local variables: the location of the explosion, the size of the explosion, whether the explosion will set fires around it, whether the explosion will break blocks around it, and whether the explosion will be delayed a tick.

Constructor
DetonatorExplosionEvent(LivingEntity entity, int level, Location loc, float size, boolean setFire, boolean setBlocks, boolean delayExplosion)
 * // LivingEntity entity - the entity who shot the arrow
 * // int level - the level of Detonator used
 * // Location loc - the location of the explosion
 * // float size - the size of the explosion
 * // boolean setFire - whether the explosion will set fires
 * // boolean setBlocks - whether the explosion will break blocks
 * // boolean delayExplosion - whether the explosion will be delayed by a tick

Implements
None

Extends
ESEntityEvent

public Location getLoc
Gets the location of the explosion

float getSize
Gets the size of the explosion

void setSize(float size)
Sets the size of the explosion to the specified value

boolean willSetFire
Whether the explosion will set fires around the explosion

void setFire(boolean setFire)
Sets whether the explosion will set fires to the specified value

boolean willSetBlocks
Whether the explosion will break blocks

void setBlocks(boolean setBlocks)
Sets whether the explosion will break blocks to the specified value

boolean willDelayExplosion
Whether the explosion will be delayed by a tick. This will cause arrows hitting entities to do normal damage before the explosion occurs

void setDelayExplosion(boolean delayExplosion)
Sets whether the explosion will be delayed to the specified value