blob: d7f0bb1642a2232f6f6f53c7b43a39a82bd8ff23 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
package org.bukkit.event.painting;
import org.bukkit.entity.Entity;
import org.bukkit.entity.Painting;
/**
* Triggered when a painting is removed by an entity
*/
public class PaintingBreakByEntityEvent extends PaintingBreakEvent {
private final Entity remover;
public PaintingBreakByEntityEvent(final Painting painting, final Entity remover) {
super(painting, RemoveCause.ENTITY);
this.remover = remover;
}
/**
* Gets the entity that removed the painting
*
* @return the entity that removed the painting.
*/
public Entity getRemover() {
return remover;
}
}
|