Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.event.entity.ExplosionPrimeEvent Class Reference
Inheritance diagram for org.bukkit.event.entity.ExplosionPrimeEvent:
org.bukkit.event.entity.EntityEvent org.bukkit.event.Cancellable org.bukkit.event.Event

Public Member Functions

 ExplosionPrimeEvent (final Entity what, final float radius, final boolean fire)
 
 ExplosionPrimeEvent (final Explosive explosive)
 
boolean isCancelled ()
 
void setCancelled (boolean cancel)
 
float getRadius ()
 
void setRadius (float radius)
 
boolean getFire ()
 
void setFire (boolean fire)
 
HandlerList getHandlers ()
 
- Public Member Functions inherited from org.bukkit.event.entity.EntityEvent
 EntityEvent (final Entity what)
 
Entity getEntity ()
 
EntityType getEntityType ()
 
- Public Member Functions inherited from org.bukkit.event.Event
 Event ()
 
 Event (boolean isAsync)
 
String getEventName ()
 
abstract HandlerList getHandlers ()
 
final boolean isAsynchronous ()
 

Static Public Member Functions

static HandlerList getHandlerList ()
 

Additional Inherited Members

- Protected Attributes inherited from org.bukkit.event.entity.EntityEvent
Entity entity
 

Detailed Description

Called when an entity has made a decision to explode.

Definition at line 11 of file ExplosionPrimeEvent.java.

Member Function Documentation

boolean org.bukkit.event.entity.ExplosionPrimeEvent.getFire ( )

Gets whether this explosion will create fire or not

Returns
true if this explosion will create fire

Definition at line 59 of file ExplosionPrimeEvent.java.

59  {
60  return fire;
61  }
float org.bukkit.event.entity.ExplosionPrimeEvent.getRadius ( )

Gets the radius of the explosion

Returns
returns the radius of the explosion

Definition at line 41 of file ExplosionPrimeEvent.java.

41  {
42  return radius;
43  }
boolean org.bukkit.event.entity.ExplosionPrimeEvent.isCancelled ( )

Gets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins

Returns
true if this event is cancelled

Implements org.bukkit.event.Cancellable.

Definition at line 28 of file ExplosionPrimeEvent.java.

28  {
29  return cancel;
30  }
void org.bukkit.event.entity.ExplosionPrimeEvent.setCancelled ( boolean  cancel)

Sets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins.

Parameters
canceltrue if you wish to cancel this event

Implements org.bukkit.event.Cancellable.

Definition at line 32 of file ExplosionPrimeEvent.java.

32  {
33  this.cancel = cancel;
34  }
void org.bukkit.event.entity.ExplosionPrimeEvent.setFire ( boolean  fire)

Sets whether this explosion will create fire or not

Parameters
firetrue if you want this explosion to create fire

Definition at line 68 of file ExplosionPrimeEvent.java.

68  {
69  this.fire = fire;
70  }
void org.bukkit.event.entity.ExplosionPrimeEvent.setRadius ( float  radius)

Sets the radius of the explosion

Parameters
radiusthe radius of the explosion

Definition at line 50 of file ExplosionPrimeEvent.java.

50  {
51  this.radius = radius;
52  }

The documentation for this class was generated from the following file: