EntityExplodeEvent
EntityExplodeEvent
=> org.bukkit.event.Event
=> org.bukkit.event.entity.EntityEvent
=> org.bukkit.event.entity.EntityExplodeEvent
Called when an entity explodes当实体爆炸时触发。
方法声明: public boolean isCancelled()
方法签名: ()Z
方法声明: public void setCancelled(boolean cancel)
方法签名: (Z)V
方法声明: public List blockList()
方法签名: ()Ljava/util/List;
Returns the list of blocks that would have been removed or were removedfrom the explosion event.@return All blown-up blocks该方法用于获取一个列表,其间存储有全部受爆炸破坏的方块。@return 全部受爆炸破坏的方块列表。
方法声明: public Location getLocation()
方法签名: ()Lorg/bukkit/Location;
Returns the location where the explosion happened.It is not possible to get this value from the Entity as the Entity nolonger exists in the world.@return The location of the explosion该方法用于获取爆炸发生的位置。无法通过涉事实体所在的位置来获得爆炸发生的位置。当本事件发生时,引发爆炸的实体已经不复存在。@return 爆炸发生的位置。
方法声明: public float getYield()
方法签名: ()F
Returns the percentage of blocks to drop from this explosion@return The yield.该方法用于获取爆炸中被炸毁方块的掉落概率。@return 被炸毁方块的掉落概率。
方法声明: public void setYield(float yield)
方法签名: (F)V
Sets the percentage of blocks to drop from this explosion@param yield The new yield percentage该方法用于设置爆炸中被炸毁方块的掉落概率。@param yield 被炸毁方块的掉落概率。
方法声明: public HandlerList getHandlers()
方法签名: ()Lorg/bukkit/event/HandlerList;
方法声明: public static HandlerList getHandlerList()
方法签名: ()Lorg/bukkit/event/HandlerList;
Last modified 1mo ago