![]() |
Bukkit
1.4.7-R1.0
|
Called when an entity explodes. More...
Inheritance diagram for org.bukkit.event.entity.EntityExplodeEvent:
Collaboration diagram for org.bukkit.event.entity.EntityExplodeEvent:Public Member Functions | |
| EntityExplodeEvent (final Entity what, final Location location, final List< Block > blocks, final float yield) | |
| boolean | isCancelled () |
| void | setCancelled (boolean cancel) |
| List< Block > | blockList () |
| Returns the list of blocks that would have been removed or were removed from the explosion event. | |
| Location | getLocation () |
| Returns the location where the explosion happened. | |
| float | getYield () |
| Returns the percentage of blocks to drop from this explosion. | |
| void | setYield (float yield) |
| Sets the percentage of blocks to drop from this explosion. | |
| HandlerList | getHandlers () |
Public Member Functions inherited from org.bukkit.event.entity.EntityEvent | |
| EntityEvent (final Entity what) | |
| Entity | getEntity () |
| Returns the Entity involved in this event. | |
| EntityType | getEntityType () |
| Gets the EntityType of the Entity involved in this event. | |
Public Member Functions inherited from org.bukkit.event.Event | |
| Event () | |
| The default constructor is defined for cleaner code. | |
| Event (boolean isAsync) | |
| This constructor is used to explicitly declare an event as synchronous or asynchronous. | |
| String | getEventName () |
| final boolean | isAsynchronous () |
| Any custom event that should not by synchronized with other events must use the specific constructor. | |
Public Member Functions inherited from org.bukkit.event.Cancellable | |
| boolean | isCancelled () |
| Gets the cancellation state of this event. | |
| void | setCancelled (boolean cancel) |
| Sets the cancellation state of this event. | |
Static Public Member Functions | |
| static HandlerList | getHandlerList () |
Additional Inherited Members | |
Protected Attributes inherited from org.bukkit.event.entity.EntityEvent | |
| Entity | entity |
Called when an entity explodes.
Definition at line 14 of file EntityExplodeEvent.java.
| org.bukkit.event.entity.EntityExplodeEvent.EntityExplodeEvent | ( | final Entity | what, |
| final Location | location, | ||
| final List< Block > | blocks, | ||
| final float | yield | ||
| ) |
Definition at line 21 of file EntityExplodeEvent.java.
| 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.
Definition at line 43 of file EntityExplodeEvent.java.
|
static |
Definition at line 81 of file EntityExplodeEvent.java.
|
virtual |
Implements org.bukkit.event.Event.
Definition at line 77 of file EntityExplodeEvent.java.
| 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.
Definition at line 54 of file EntityExplodeEvent.java.
| float org.bukkit.event.entity.EntityExplodeEvent.getYield | ( | ) |
Returns the percentage of blocks to drop from this explosion.
Definition at line 63 of file EntityExplodeEvent.java.
| boolean org.bukkit.event.entity.EntityExplodeEvent.isCancelled | ( | ) |
Definition at line 29 of file EntityExplodeEvent.java.
| void org.bukkit.event.entity.EntityExplodeEvent.setCancelled | ( | boolean | cancel | ) |
Definition at line 33 of file EntityExplodeEvent.java.
| void org.bukkit.event.entity.EntityExplodeEvent.setYield | ( | float | yield | ) |
Sets the percentage of blocks to drop from this explosion.
| yield | The new yield percentage |
Definition at line 72 of file EntityExplodeEvent.java.