BlockExplodeEvent
BlockExplodeEvent
=> org.bukkit.event.Event
=> org.bukkit.event.block.BlockEvent
=> org.bukkit.event.block.BlockExplodeEvent
Called when a block 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 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