BlockSpreadEvent
BlockSpreadEvent
=> org.bukkit.event.Event
=> org.bukkit.event.block.BlockEvent
=> org.bukkit.event.block.BlockGrowEvent
=> org.bukkit.event.block.BlockFormEvent
=> org.bukkit.event.block.BlockSpreadEvent
Called when a block spreads based on world conditions.Use {@link BlockFormEvent} to catch blocks that "randomly" form instead ofactually spread.Examples:
Mushrooms spreading. Fire spreading.If a Block Spread event is cancelled, the block will not spread.@see BlockFormEvent当一应条件合适,方块开始向四周蔓延时触发。如欲监听某些方块“随机”生成的事件,请参见BlockFormEvent
。本事件在方块蔓延时触发。本事件触发的情景包括:
蘑菇生长。 火焰蔓延。如果本事件被取消,则涉事方块不会蔓延。@see 参见BlockFormEvent
。
方法声明: public Block getSource()
方法签名: ()Lorg/bukkit/block/Block;
Gets the source block involved in this event.@return the Block for the source block involved in this event.该方法用于获取向外蔓延的源头方块。@return 向外蔓延的源头方块。
方法声明: public HandlerList getHandlers()
方法签名: ()Lorg/bukkit/event/HandlerList;
方法声明: public static HandlerList getHandlerList()
方法签名: ()Lorg/bukkit/event/HandlerList;
Last modified 1mo ago