Package org.bukkit.event.hanging
Class HangingBreakByEntityEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.hanging.HangingEvent
org.bukkit.event.hanging.HangingBreakEvent
org.bukkit.event.hanging.HangingBreakByEntityEvent
- All Implemented Interfaces:
Cancellable
public class HangingBreakByEntityEvent extends HangingBreakEvent
Triggered when a hanging entity is removed by an entity
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.hanging.HangingBreakEvent
HangingBreakEvent.RemoveCause
-
Field Summary
-
Constructor Summary
Constructors Constructor Description HangingBreakByEntityEvent(Hanging hanging, Entity remover)
HangingBreakByEntityEvent(Hanging hanging, Entity remover, HangingBreakEvent.RemoveCause cause)
-
Method Summary
Modifier and Type Method Description Entity
getRemover()
Gets the entity that removed the hanging entity.Methods inherited from class org.bukkit.event.hanging.HangingBreakEvent
getCause, getHandlerList, getHandlers, isCancelled, setCancelled
-
Constructor Details
-
Method Details
-
getRemover
Gets the entity that removed the hanging entity. May be null, for example when broken by an explosion.- Returns:
- the entity that removed the hanging entity
-