|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.bukkit.event.Event
org.bukkit.event.entity.EntityEvent
org.bukkit.event.entity.ExplosionPrimeEvent
public class ExplosionPrimeEvent
Called when an entity has made a decision to explode.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.bukkit.event.Event |
|---|
Event.Result |
| Field Summary |
|---|
| Fields inherited from class org.bukkit.event.entity.EntityEvent |
|---|
entity |
| Constructor Summary | |
|---|---|
ExplosionPrimeEvent(Entity what,
float radius,
boolean fire)
|
|
ExplosionPrimeEvent(Explosive explosive)
|
|
| Method Summary | |
|---|---|
boolean |
getFire()
Gets whether this explosion will create fire or not |
static HandlerList |
getHandlerList()
|
HandlerList |
getHandlers()
|
float |
getRadius()
Gets the radius of the explosion |
boolean |
isCancelled()
Gets the cancellation state of this event. |
void |
setCancelled(boolean cancel)
Sets the cancellation state of this event. |
void |
setFire(boolean fire)
Sets whether this explosion will create fire or not |
void |
setRadius(float radius)
Sets the radius of the explosion |
| Methods inherited from class org.bukkit.event.entity.EntityEvent |
|---|
getEntity, getEntityType |
| Methods inherited from class org.bukkit.event.Event |
|---|
getEventName, isAsynchronous |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExplosionPrimeEvent(Entity what,
float radius,
boolean fire)
public ExplosionPrimeEvent(Explosive explosive)
| Method Detail |
|---|
public boolean isCancelled()
Cancellable
isCancelled in interface Cancellablepublic void setCancelled(boolean cancel)
Cancellable
setCancelled in interface Cancellablecancel - true if you wish to cancel this eventpublic float getRadius()
public void setRadius(float radius)
radius - the radius of the explosionpublic boolean getFire()
public void setFire(boolean fire)
fire - true if you want this explosion to create firepublic HandlerList getHandlers()
getHandlers in class Eventpublic static HandlerList getHandlerList()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||