BlockGrowEvent
BlockGrowEvent
=> org.bukkit.event.Event
=> org.bukkit.event.block.BlockEvent
=> org.bukkit.event.block.BlockGrowEvent
Called when a block grows naturally in the world.Examples:
Wheat Sugar Cane Cactus Watermelon Pumpkin Turtle EggIf a Block Grow event is cancelled, the block will not grow.当方块在世界中自然生长时触发。本事件触发的情景包括:
小麦生长。 甘蔗生长。 仙人掌生长。 西瓜生长。 南瓜生长。 海龟蛋孵化。如果本事件被取消,则涉事方块将不会生长。
方法声明: public BlockState getNewState()
方法签名: ()Lorg/bukkit/block/BlockState;
Gets the state of the block where it will form or spread to.@return The block state for this events block该方法用于获取涉事方块生长以后的新块状态。如果涉及到方块蔓延,则返回新生成的方块的块状态。@return 涉事方块生长以后的新块状态。
方法声明: public boolean isCancelled()
方法签名: ()Z
方法声明: public void setCancelled(boolean cancel)
方法签名: (Z)V
方法声明: public HandlerList getHandlers()
方法签名: ()Lorg/bukkit/event/HandlerList;
方法声明: public static HandlerList getHandlerList()
方法签名: ()Lorg/bukkit/event/HandlerList;
Last modified 1mo ago