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

Public Member Functions

 EntityExplodeEvent (final Entity what, final Location location, final List< Block > blocks, final float yield)
boolean isCancelled ()
void setCancelled (boolean cancel)
List< BlockblockList ()
Location getLocation ()
float getYield ()
void setYield (float yield)
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 explodes

Definition at line 14 of file EntityExplodeEvent.java.

Member Function Documentation

List<Block> org.bukkit.event.entity.EntityExplodeEvent.blockList ( )

Returns the list of blocks that would have been removed or were removed from the explosion event.

All blown-up blocks

Definition at line 43 of file EntityExplodeEvent.java.

43  {
44  return blocks;
45  }
Location org.bukkit.event.entity.EntityExplodeEvent.getLocation ( )

Returns the location where the explosion happened.

It is not possible to get this value from the Entity as the Entity no longer exists in the world.

The location of the explosion

Definition at line 55 of file EntityExplodeEvent.java.

55  {
56  return location;
57  }
float org.bukkit.event.entity.EntityExplodeEvent.getYield ( )

Returns the percentage of blocks to drop from this explosion

The yield.

Definition at line 64 of file EntityExplodeEvent.java.

64  {
65  return yield;
66  }
boolean org.bukkit.event.entity.EntityExplodeEvent.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

true if this event is cancelled

Implements org.bukkit.event.Cancellable.

Definition at line 29 of file EntityExplodeEvent.java.

29  {
30  return cancel;
31  }
void org.bukkit.event.entity.EntityExplodeEvent.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.

canceltrue if you wish to cancel this event

Implements org.bukkit.event.Cancellable.

Definition at line 33 of file EntityExplodeEvent.java.

33  {
34  this.cancel = cancel;
35  }
void org.bukkit.event.entity.EntityExplodeEvent.setYield ( float  yield)

Sets the percentage of blocks to drop from this explosion

yieldThe new yield percentage

Definition at line 73 of file EntityExplodeEvent.java.

73  {
74  this.yield = yield;
75  }

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