HangingBreakEvent
HangingBreakEvent
=> org.bukkit.event.Event
=> org.bukkit.event.hanging.HangingEvent
=> org.bukkit.event.hanging.HangingBreakEvent
Triggered when a hanging entity is removed当某个悬挂物实体被移除时触发。
方法声明: public HangingBreakEvent.RemoveCause getCause()
方法签名: ()Lorg/bukkit/event/hanging/HangingBreakEvent/RemoveCause;
Gets the cause for the hanging entity's removal@return the RemoveCause for the hanging entity's removal该方法用于获取悬挂物被移除的原因。@return 一个RemoveCause
枚举字段,用于确定悬挂物被移除的原因。
方法声明: 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;
An enum to specify the cause of the removal用于确定悬挂物移除原因的枚举。
Removed by an entity被实体移除。
Removed by an explosion被爆炸移除。
Removed by placing a block on it由于在悬挂物所处的位置上有方块被放置而被移除。
Removed by destroying the block behind it, etc包括悬挂物背后的方块被摧毁在内的多种情况。译注:Physics
一词与方块状态的更新有关。悬挂物背后的方块被摧毁使得周遭环境发生更新。可参见BlockPhysicsEvent
。
Removed by an uncategorised cause removal由于某种未能归入上文类别的原因,悬挂物被移除。
Last modified 1mo ago