Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
PaintingBreakByEntityEvent.java
1 package org.bukkit.event.painting;
2 
3 import org.bukkit.Warning;
4 import org.bukkit.entity.Entity;
6 
7 /**
8  * Triggered when a painting is removed by an entity
9  *
10  * @deprecated Use {@link org.bukkit.event.hanging.HangingBreakByEntityEvent}
11  * instead.
12  */
13 @Deprecated
14 @Warning(reason="This event has been replaced by HangingBreakByEntityEvent")
16  private final Entity remover;
17 
18  public PaintingBreakByEntityEvent(final Painting painting, final Entity remover) {
19  super(painting, RemoveCause.ENTITY);
20  this.remover = remover;
21  }
22 
23  /**
24  * Gets the entity that removed the painting
25  *
26  * @return the entity that removed the painting.
27  */
28  public Entity getRemover() {
29  return remover;
30  }
31 }