|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.bukkit.event.Event org.bukkit.event.entity.EntityEvent org.bukkit.event.entity.EntityExplodeEvent
public class EntityExplodeEvent
Called when an entity explodes
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 | |
---|---|
EntityExplodeEvent(Entity what,
Location location,
List<Block> blocks,
float yield)
|
Method Summary | |
---|---|
List<Block> |
blockList()
Returns the list of blocks that would have been removed or were removed from the explosion event. |
static HandlerList |
getHandlerList()
|
HandlerList |
getHandlers()
|
Location |
getLocation()
Returns the location where the explosion happened. |
float |
getYield()
Returns the percentage of blocks to drop from this explosion |
boolean |
isCancelled()
Gets the cancellation state of this event. |
void |
setCancelled(boolean cancel)
Sets the cancellation state of this event. |
void |
setYield(float yield)
Sets the percentage of blocks to drop from this 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 EntityExplodeEvent(Entity what, Location location, List<Block> blocks, float yield)
Method Detail |
---|
public boolean isCancelled()
Cancellable
isCancelled
in interface Cancellable
public void setCancelled(boolean cancel)
Cancellable
setCancelled
in interface Cancellable
cancel
- true if you wish to cancel this eventpublic List<Block> blockList()
public Location getLocation()
public float getYield()
public void setYield(float yield)
yield
- The new yield percentagepublic HandlerList getHandlers()
getHandlers
in class Event
public static HandlerList getHandlerList()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |