001 package org.bukkit.event.painting; 002 003 import org.bukkit.Warning; 004 import org.bukkit.entity.Entity; 005 import org.bukkit.entity.Painting; 006 007 /** 008 * Triggered when a painting is removed by an entity 009 * 010 * @deprecated Use {@link org.bukkit.event.hanging.HangingBreakByEntityEvent} 011 * instead. 012 */ 013 @Deprecated 014 @Warning(reason="This event has been replaced by HangingBreakByEntityEvent") 015 public class PaintingBreakByEntityEvent extends PaintingBreakEvent { 016 private final Entity remover; 017 018 public PaintingBreakByEntityEvent(final Painting painting, final Entity remover) { 019 super(painting, RemoveCause.ENTITY); 020 this.remover = remover; 021 } 022 023 /** 024 * Gets the entity that removed the painting 025 * 026 * @return the entity that removed the painting. 027 */ 028 public Entity getRemover() { 029 return remover; 030 } 031 }