public class EntityExplodeEvent extends EntityEvent implements Cancellable
Event.Resultentity| コンストラクタと説明 |
|---|
EntityExplodeEvent(Entity what,
Location location,
List<Block> blocks,
float yield) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
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
|
getEntity, getEntityTypegetEventName, isAsynchronouspublic boolean isCancelled()
CancellableisCancelled インタフェース内 Cancellablepublic void setCancelled(boolean cancel)
CancellablesetCancelled インタフェース内 Cancellablecancel - true if you wish to cancel this eventpublic List<Block> blockList()
public Location getLocation()
It is not possible to get this value from the Entity as the Entity no longer exists in the world.
public float getYield()
public void setYield(float yield)
yield - The new yield percentagepublic HandlerList getHandlers()
getHandlers クラス内 Eventpublic static HandlerList getHandlerList()
Copyright © 2016. All rights reserved.