public class EntityExplodeEvent extends EntityEvent implements Cancellable
Event.Result
entity
构造器和说明 |
---|
EntityExplodeEvent(Entity what,
Location location,
java.util.List<Block> blocks,
float yield) |
限定符和类型 | 方法和说明 |
---|---|
java.util.List<Block> |
blockList()
返回被将移除或已被这次爆炸移除的方块列表.
|
static HandlerList |
getHandlerList() |
HandlerList |
getHandlers() |
Location |
getLocation()
返回爆炸发生的位置.
|
float |
getYield()
返回这次爆炸掉落方块占所有影响到的方块的百分比.
|
boolean |
isCancelled()
获取这个事件是否被取消.一个被取消的事件不会在服务器里被执行,但是仍然会传递事件到其他插件。
|
void |
setCancelled(boolean cancel)
取消这个事件.
|
void |
setYield(float yield)
设置这次爆炸掉落的方块的百分比.
|
getEntity, getEntityType
getEventName, isAsynchronous
public boolean isCancelled()
Cancellable
原文:Gets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins
isCancelled
在接口中 Cancellable
public void setCancelled(boolean cancel)
Cancellable
原文:Sets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins.
setCancelled
在接口中 Cancellable
cancel
- 如果你想取消这个事件,则为truepublic java.util.List<Block> blockList()
原文: Returns the list of blocks that would have been removed or were removed from the explosion event.
public Location 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.
public float getYield()
原文:Returns the percentage of blocks to drop from this explosion
public void setYield(float yield)
原文:Sets the percentage of blocks to drop from this explosion
yield
- 掉落物占有率public HandlerList getHandlers()
getHandlers
在类中 Event
public static HandlerList getHandlerList()