public final class Explosion extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
EXPLOSION_VISIBILITY_RADIUS |
static int |
POWER_BED |
static int |
POWER_CHARGED_CREEPER |
static int |
POWER_CREEPER |
static int |
POWER_ENDER_CRYSTAL |
static int |
POWER_GHAST |
static int |
POWER_TNT |
static int |
POWER_WITHER_CREATION |
static int |
POWER_WITHER_SKULL |
| Constructor and Description |
|---|
Explosion(org.bukkit.entity.Entity source,
GlowWorld world,
double x,
double y,
double z,
float power,
boolean incendiary,
boolean breakBlocks)
Creates a new explosion.
|
Explosion(org.bukkit.entity.Entity source,
org.bukkit.Location location,
float power,
boolean incendiary,
boolean breakBlocks)
Creates a new explosion.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
explodeWithEvent()
Explodes, firing a
EntityExplodeEvent, as long as its power is non-negligible. |
public static final int POWER_TNT
public static final int POWER_BED
public static final int POWER_CREEPER
public static final int POWER_CHARGED_CREEPER
public static final int POWER_GHAST
public static final int POWER_WITHER_SKULL
public static final int POWER_WITHER_CREATION
public static final int POWER_ENDER_CRYSTAL
public static final int EXPLOSION_VISIBILITY_RADIUS
public Explosion(org.bukkit.entity.Entity source,
GlowWorld world,
double x,
double y,
double z,
float power,
boolean incendiary,
boolean breakBlocks)
source - The entity causing this explosionworld - The world this explosion is inx - The X location of the explosiony - The Y location of the explosionz - The Z location of the explosionpower - The power of the explosionincendiary - Whether or not blocks should be set on firebreakBlocks - Whether blocks should break through this explosionpublic Explosion(@Nullable org.bukkit.entity.Entity source, org.bukkit.Location location, float power, boolean incendiary, boolean breakBlocks)
source - The entity causing this explosionlocation - The location this explosion is occuring at. Must be in a GlowWorld.power - The power of the explosionincendiary - Whether or not blocks should be set on firebreakBlocks - Whether blocks should break through this explosionCopyright © 2021. All rights reserved.