Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
HangingBreakByEntityEvent.java
1 package org.bukkit.event.hanging;
2 
3 import org.bukkit.entity.Entity;
4 import org.bukkit.entity.Hanging;
5 
6 /**
7  * Triggered when a hanging entity is removed by an entity
8  */
10  private final Entity remover;
11 
12  public HangingBreakByEntityEvent(final Hanging hanging, final Entity remover) {
13  super(hanging, HangingBreakEvent.RemoveCause.ENTITY);
14  this.remover = remover;
15  }
16 
17  /**
18  * Gets the entity that removed the hanging entity
19  *
20  * @return the entity that removed the hanging entity
21  */
22  public Entity getRemover() {
23  return remover;
24  }
25 }